Skip to content

Commit 3afa319

Browse files
bonigarciadiemol
andauthored
[rust] Download latest version of Chrome for Testing (#11676) (#12353)
* [rust] Download latest version of Chrome for Testing (#11676) * [rust] Fix differences about CfT binaries in macOS * [rust] Refactor function to request latest browser version from CfT * [rust] Update checksum in cargo lock file * [rust] Return browser path also when browser is local * [rust] Check browser in PATH * [rust] Set default TTL_browsers to 3600s (1 hour), like new TTL_drivers * [rust] Improve error handling for unavailable driver * [rust] Force operating system to Windows in for IExplorer * [rust] Improve path escaping in Linux and macOS for browser discovery * [rust] Return always browser path in results --------- Co-authored-by: Diego Molina <[email protected]>
1 parent 9772e55 commit 3afa319

20 files changed

Lines changed: 701 additions & 325 deletions

rust/Cargo.Bazel.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "e324d731a7a745741843d13e869e9d16f097a4e797b827d05d06dcbd0a5cb7b0",
2+
"checksum": "0a20f0fe60fda64d9bb35f8a482f95239754a053b83e53e92d2a259eab911369",
33
"crates": {
44
"addr2line 0.19.0": {
55
"name": "addr2line",
@@ -7075,9 +7075,9 @@
70757075
},
70767076
"license": "Apache-2.0/ISC/MIT"
70777077
},
7078-
"selenium-manager 1.0.0-M3": {
7078+
"selenium-manager 1.0.0-M4": {
70797079
"name": "selenium-manager",
7080-
"version": "1.0.0-M3",
7080+
"version": "1.0.0-M4",
70817081
"repository": null,
70827082
"targets": [
70837083
{
@@ -7182,7 +7182,7 @@
71827182
"selects": {}
71837183
},
71847184
"edition": "2021",
7185-
"version": "1.0.0-M3"
7185+
"version": "1.0.0-M4"
71867186
},
71877187
"license": "Apache-2.0"
71887188
},
@@ -11822,7 +11822,7 @@
1182211822
},
1182311823
"binary_crates": [],
1182411824
"workspace_members": {
11825-
"selenium-manager 1.0.0-M3": "rust"
11825+
"selenium-manager 1.0.0-M4": "rust"
1182611826
},
1182711827
"conditions": {
1182811828
"aarch64-apple-darwin": [

rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "selenium-manager"
3-
version = "1.0.0-M3"
3+
version = "1.0.0-M4"
44
edition = "2021"
55
authors = ["Selenium <[email protected]"]
66
license = "Apache-2.0"

rust/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Selenium Manager can be executed using Cargo as follows:
1616

1717
```
1818
$ cargo run -- --help
19-
selenium-manager 1.0.0-M3
19+
selenium-manager 1.0.0-M4
2020
Selenium Manager is a CLI tool that automatically manages the browser/driver infrastructure required by Selenium.
2121
2222
Usage: selenium-manager [OPTIONS]
@@ -32,17 +32,17 @@ Options:
3232
--browser-version <BROWSER_VERSION>
3333
Major browser version (e.g., 105, 106, etc. Also: beta, dev, canary -or nightly- is accepted)
3434
--browser-path <BROWSER_PATH>
35-
Browser path (absolute) for browser version detection (e.g., /usr/bin/google-chrome, "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome", "C:\Program Files\Google\Chrome\Application\chrome.exe")
35+
Browser path (absolute) for browser version detection (e.g., /usr/bin/google-chrome, "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "C:\Program Files\Google\Chrome\Application\chrome.exe")
3636
--output <OUTPUT>
3737
Output type: LOGGER (using INFO, WARN, etc.), JSON (custom JSON notation), or SHELL (Unix-like) [default: LOGGER]
3838
--proxy <PROXY>
3939
HTTP proxy for network connection (e.g., https://myproxy.net:8080)
4040
--timeout <TIMEOUT>
41-
Timeout for network requests (in seconds) [default: 180]
41+
Timeout for network requests (in seconds) [default: 300]
4242
--driver-ttl <DRIVER_TTL>
4343
Driver TTL (time-to-live) [default: 3600]
4444
--browser-ttl <BROWSER_TTL>
45-
Browser TTL (time-to-live) [default: 0]
45+
Browser TTL (time-to-live) [default: 3600]
4646
--clear-cache
4747
Clear cache folder (~/.cache/selenium)
4848
--clear-metadata
@@ -53,6 +53,8 @@ Options:
5353
Display TRACE messages
5454
--offline
5555
Offline mode (i.e., disabling network requests and downloads)
56+
--force-browser-download
57+
Force to download browser. Currently Chrome for Testing (CfT) is supported
5658
-h, --help
5759
Print help
5860
-V, --version

0 commit comments

Comments
 (0)