1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! A library for downloading and installing webdrivers.
//!
//! This library provides a generic interface for downloading, installing and
//! verifying webdrivers. It also provides implementations for the most common
//! webdrivers.
//!
//! # Examples
//!
//! ## Downloading and installing chromedriver
//!
//! ```no_run
//! use webdriver_downloader::prelude::*;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), WebdriverDownloadError> {
//! let chromedriver_info = ChromedriverInfo::new_default()?;
//!
//! if !chromedriver_info.is_installed().await {
//! chromedriver_info.download_verify_install(5).await?;
//! }
//!
//! Ok(())
//! }
//! ```
//!
//! This will download the latest version of chromedriver, verify it, and install
//! it to the default location.
//! See [`default_install_path`](os_specific::chromedriver_old::default_driver_path)s for default install locations.
//!
//! # Implementing your own webdriver
//!
//! See [`traits`] for more information on how to implement your own webdriver.
compile_error!;
/// Re-exported driver implementations, traits, errors and os_specific data.
///
/// This module is intended to be used as a prelude, and contains all the
/// necessary imports for using library provided driver implementations.