/// The GenericWebDriver struct is not intended to be created directly.
///
/// Instead you would use the WebDriver struct, which wires up the
/// GenericWebDriver with a HTTP client for making requests to the
/// WebDriver server.
///
/// Create a new WebDriver as follows:
///
/// # Example
/// ```rust
/// # use thirtyfour::prelude::*;
/// # use thirtyfour::support::block_on;
/// #
/// # fn main() -> WebDriverResult<()> {
/// #     block_on(async {
/// let caps = DesiredCapabilities::chrome();
/// let driver = WebDriver::new("http://localhost:4444/wd/hub", &caps).await?;
/// #         driver.quit().await?;
/// #         Ok(())
/// #     })
/// # }
/// ```
///
/// **NOTE:** If the webdriver appears to hang or give no response, please check that the
///     capabilities object is of the correct type for that webdriver.
The GenericWebDriver struct is not intended to be created directly.
Instead you would use the WebDriver struct, which wires up the
GenericWebDriver with a HTTP client for making requests to the
WebDriver server.

Create a new WebDriver as follows.
The GenericWebDriver struct is not intended to be created directly . Instead you would use the WebDriver struct which wires up the GenericWebDriver with a HTTP client for making requests to the WebDriver server . Create a new WebDriver as follows .
pub async fn new<C>(server_url: &str, capabilities: C) -> WebDriverResult<Self>
    where
        C: Serialize,
    {
        Self::new_with_timeout(server_url, capabilities, Some(Duration::from_secs(120))).await
    }
pub async fn new < C > ( server_url : & str , capabilities : C ) -> WebDriverResult < Self > where C : Serialize , { Self :: new_with_timeout ( server_url , capabilities , Some ( Duration :: from_secs ( 120 ) ) ) . await }
The GenericWebDriver struct is not intended to be created directly.
The GenericWebDriver struct is not intended to be created directly .
server_url
&str
capabilities
C
example
None
use thirtyfour::prelude::*;
None
use thirtyfour::support::block_on;
None
fn main() -> webdriverresult<()> {
None
block_on(async {
None
driver.quit().await?;
None
ok(())
None
})
None
}


If the webdriver appears to hang or give no response, please check that the
capabilities object is of the correct type for that webdriver.
If the webdriver appears to hang or give no response please check that the capabilities object is of the correct type for that webdriver .