ChromedriverManager

Crates.ioChromedriverManager
lib.rsChromedriverManager
version0.1.0
sourcesrc
created_at2023-12-06 04:21:17.016915
updated_at2023-12-06 04:21:17.016915
descriptionA Rust library for downloading and managing ChromeDrivers.
homepagehttps://github.com/Sw1ndlers/ChromedriverManager
repository
max_upload_size
id1059684
size17,484
Alex (Sw1ndlers)

documentation

README

Chromedriver Manager

use thirtyfour::prelude::*;

// Require the Handler
use chromedriver_manager::manager::Handler; 

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Create Chrome capabilities
    let mut caps = DesiredCapabilities::chrome(); 

    // Launch chromedriver on port 9515 
    Handler::new()
        .launch_chromedriver(&mut caps, "9515") 
        .await?;

    // Connect to chrome on the same port
    let driver = WebDriver::new("http://localhost:9515", caps).await?; 

    Ok(())
}
Commit count: 0

cargo fmt