Struct webdriver_downloader::structs::ChromedriverInfo
source · pub struct ChromedriverInfo { /* private fields */ }
Expand description
Information required to implement WebdriverInfo for Chromedriver.
Implementations§
Trait Implementations§
source§impl BinaryMajorVersionHintUrlInfo for ChromedriverInfo
impl BinaryMajorVersionHintUrlInfo for ChromedriverInfo
source§fn binary_version(&self) -> Result<Version, BinaryVersionError>
fn binary_version(&self) -> Result<Version, BinaryVersionError>
Version hint. Used by
BinaryMajorVersionHintUrlInfo::compare_version
.source§fn driver_version_urls<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<VersionUrl>, UrlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn driver_version_urls<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Vec<VersionUrl>, UrlError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
VersionUrl
s, probably parsed from driver’s download page.source§impl WebdriverInstallationInfo for ChromedriverInfo
impl WebdriverInstallationInfo for ChromedriverInfo
source§fn driver_install_path(&self) -> &Path
fn driver_install_path(&self) -> &Path
Path to install driver.
source§fn driver_name_in_archive(&self) -> &'static str
fn driver_name_in_archive(&self) -> &'static str
Driver executable name in archive file.
source§fn download_in_tempdir<'life0, 'life1, 'async_trait, U>(
&'life0 self,
url: U,
dir: &'life1 TempDir
) -> Pin<Box<dyn Future<Output = Result<PathBuf, InstallationError>> + Send + 'async_trait>>where
U: 'async_trait + IntoUrl + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn download_in_tempdir<'life0, 'life1, 'async_trait, U>( &'life0 self, url: U, dir: &'life1 TempDir ) -> Pin<Box<dyn Future<Output = Result<PathBuf, InstallationError>> + Send + 'async_trait>>where U: 'async_trait + IntoUrl + Send, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Downloads url and extracts the driver inside tempdir.
source§impl WebdriverVerificationInfo for ChromedriverInfo
impl WebdriverVerificationInfo for ChromedriverInfo
source§fn driver_capabilities(&self) -> Option<Capabilities>
fn driver_capabilities(&self) -> Option<Capabilities>
Capabilities to use for verification.
Some driver options such as browser path can be provided by capabilities.
source§fn verify_driver<'life0, 'life1, 'async_trait, P>(
&'life0 self,
driver_path: &'life1 P
) -> Pin<Box<dyn Future<Output = Result<(), VerificationError>> + Send + 'async_trait>>where
P: 'async_trait + AsRef<Path> + Sync,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn verify_driver<'life0, 'life1, 'async_trait, P>( &'life0 self, driver_path: &'life1 P ) -> Pin<Box<dyn Future<Output = Result<(), VerificationError>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Sync, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Verifies driver using test_client.