Library for webdriver download. Supports chromedriver, geckodriver for Windows, Linux and macOS.
```rust use webdriver_downloader::prelude::*;
async fn main() { let driverinfo = ChromedriverInfo::newdefault().unwrap();
// Tries up to 5 versions of webdrivers if it is not installed.
if !driver_info.is_installed() {
driver_info.download_verify_install(5).await.unwrap();
}
// webdriver is installed.
// Default installation path is %USERPROFILE%/bin/chromedriver.exe ($HOME/bin/chromedriver for unix family)
} ```
By implementing WebdriverUrlInfo, WebdriverInstallationInfo, WebdriverVerificationInfo
, trait WebdriverDownloadInfo
is automatically implemented for struct CustomDriverInfo
.
Then you can call custom_driver_info.download_verify_install(max_attempts)
.