Scripts
Appium drivers can include scripts for executing specific actions. The scripts included in the Chromium driver can be run as follows:
For more information about the appium driver run command, refer to the Appium docs.
install-chromedriver¶
Downloads and installs a chromedriver server binary. Available since Chromium driver version 1.4.0.
By default, the last known good stable version for the current host platform is installed. This behavior can be adjusted with the environment variables listed below.
Usage¶
Optional Environment Variables¶
Variable |
Description |
Default |
|---|---|---|
CHROMEDRIVER_VERSION |
Specific version of chromedriver to download |
Latest known good stable |
CHROMEDRIVER_EXECUTABLE_DIR |
Directory where the binary should be installed | The chromedrivers directory under envPaths('appium-chromium-driver').data |
CHROMEDRIVER_CDNURL |
Custom CDN to use for downloading binary versions below 115 | https://chromedriver.storage.googleapis.com |
CHROMELABS_URL |
Custom CDN to use for downloading binary version 115 or above | https://googlechromelabs.github.io |
Refer to the appium-chromedriver documentation
for more information about the latter two variables.
Examples¶
-
Install the latest known good stable version of
chromedriver: -
Install
chromedriverversion124.0.6367.0: -
Install the latest known good stable version of
chromedriverin a custom directory: