Expand description
The main purpose of this crate is to provide convinient ways to communicate with selenium server and write automated UI tests in Rust. To start using it, you need to have the selenium server running on localhost:4444 and chromedriver or geckodriver be present in your path
Structs§
- Actions
- Main actions struct
- Actions
Keys - Struct to create the key actions sequence
- Actions
Mouse - Struct to create the mouse actions sequence
- Actions
Wheel - Struct to create the wheel actions sequence
- Browser
- Main crate struct
- Capabilities
- Utility struct to set up the session
- Chrome
Options - Utility struct to adjust the chrome browser session
- Cookie
- Utility struct to manage session cookies
- Element
- WebElement
- Element
Rect - Encapsulates WebElement’s hight,width and left-upper corner x-axis and y-axis coordinates
- Firefox
Options - Utility struct to adjust the firefox browser session
- Margin
- One of the PrintSettings fields
- Mobile
Device - See the details at https://chromedriver.chromium.org/mobile-emulation
- Page
- One of the PrintSettings fields
- Perf
Logging Prefs - An optional struct that specifies performance logging preferences
- Print
Settings - Main struct for print settings
- Proxy
- Utility struct for session capabilities defining the proxy settings
- Safari
Options - Utility struct to adjust the safari browser session
- Timeouts
- Utility struct to manage the session’s implicit, page load and script timeouts
- Window
Rect - Utility struct representing window height,width,x-axis and y-axis
Enums§
- Browser
Name - Locator
Strategy - LogLevel
- Mouse
Button - NewWindow
Type - Needed to call the new_window method
- Orientation
- Needed for the PrintSettings struct
- Proxy
Type - Special
Key - Keyboard special keys