[rust] Include mirror arguments to change default online repository URLs (#11687) #12914
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR includes a couple of new arguments in Selenium Manager for specifying custom URLs for drivers and browsers (instead of the default ones, such as https://chromedriver.storage.googleapis.com/, https://googlechromelabs.github.io/chrome-for-testing/, etc). These arguments are:
--driver-mirror-url
: Mirror URL for driver repositories.--browser-mirror-url
: Mirror URL for browser repositories.As usual, these values can be configured using the config file or envs (e.g.,
SE_DRIVER_MIRROR_URL
orSE_BROWSER_MIRROR_URL
).Finally, there are browser and driver-specific configuration keys, such as
SE_CHROMEDRIVER_MIRROR_URL
,SE_GECKODRIVER_MIRROR_URL
,SE_CHROME_MIRROR_URL
,SE_FIREFOX_MIRROR_URL
, etc.).Here is an example of usage:
Motivation and Context
This PR implements #11687.
Types of changes
Checklist