Skip to content

Scripts

Appium drivers can include scripts for executing specific actions. The scripts included in the Chromium driver can be run as follows:

appium driver run chromium <script-name>

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

appium driver run chromium install-chromedriver
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:

    appium driver run chromium install-chromedriver
    
  • Install chromedriver version 124.0.6367.0:

    CHROMEDRIVER_VERSION=124.0.6367.0 appium driver run chromium install-chromedriver
    
  • Install the latest known good stable version of chromedriver in a custom directory:

    CHROMEDRIVER_EXECUTABLE_DIR=/my/custom/directory appium driver run chromium install-chromedriver