chrome-for-testing-manager
Programmatic management of chrome-for-testing installations.
- Automatically resolves the requested version.
Chromedriver::run_latest_stableis a shortcut forChromedriver::run(VersionRequest::LatestIn(Channel::Stable), PortRequest::Any). - Automatically downloads chrome-for-testing
chromeandchromedriverbinaries into a local cache directory. - Possibility to spawn the chromedriver process using a random port.
- Built-int session management.
Frees you from the need to
- manually download a chromedriver package matching your locally installed chrome,
- starting and stopping it manually,
- hardcoding the chosen chromedriver port into your tests and
- doing this all-over when trying to test with a new version of chrome.
Installation
[]
= "0.35"
= { = "0.6", = ["thirtyfour"] }
# Additional dependencies for the example below.
= "0.4"
= "1"
= { = "1", = ["full"] }
Example
use *;
use *;
use *;
// This library requires being used in a multithreaded runtime.
// If you want to run a test, use: `#[tokio::test(flavor = "multi_thread")]`.
async
MSRV
- Starting from version
0.5.0, the minimum supported rust version is1.85.0 - Starting from version
0.1.0, the minimum supported rust version is1.81.0