Module webdriver

Source
Expand description

This provides the primary point of interaction with the Selenium WebDriver API. We can use it to create and manage sessions, as well as use it to spawn elements from the current browsing context.

§Example - Navigating to a web page

use selenium_rs::webdriver::{Browser,WebDriver};

let mut driver= WebDriver::new(Browser::Chrome);
driver.start_session();
driver.navigate("https://www.rust-lang.org");
assert_eq!(driver.get_current_url().unwrap(), String::from("https://www.rust-lang.org/"));

Structs§

WebDriver
The WebDriver is the primary way by which interaction is managed between the Selenium-Webdriver Server, and our client.

Enums§

Browser
Selector