Appium supports automating Android web pages (in Chrome and the built-in Browser) and hybrid apps that are Chrome-backed, by managing a Chromedriver instance and proxying commands to it when necessary. It comes bundled with the latest version of Chromedriver, installed through the npm package appium-chromedriver (Github: appium-chromedriver).
Unfortunately, with each update to Chromedriver there is an increase in the minimum supported version of Chrome, such that older devices are often unable to be automated with the bundled version. In the Appium server logs there will be an error like:
An unknown server-side error occurred while processing the command. Original error: unknown error: Chrome version must be >= 55.0.2883.0
To get around this, Appium can be configured to use a particular Chromedriver
version, either at install time, by either passing the
config property, e.g.,
npm install appium --chromedriver_version="2.16"
Or specifying the version in the
CHROMEDRIVER_VERSION environment variable,
CHROMEDRIVER_VERSION=2.20 npm install appium
This can also be set to
LATEST to get the most recent version.
Finally, a version can be specified at runtime, by specifying the
--chromedriver-executable server flag, along with the full path to the
Chromedriver executable which was manually downloaded, e.g.,
appium --chromedriver-executable /path/to/my/chromedriver
The following is a list of Chromedriver versions and their corresponding minimum Chrome version that is automatable:
|Version||Minimum Chrome Version||Link to Chromedriver|
The complete list of available Chromedriver releases is here. To find
the minimum supported version for any particular version, get the Chromium
check out the release commit, and check the variable
in the file
src/chrome/test/chromedriver/chrome/version.cc. (To find the
release commits, you can use
git log --pretty=format:'%h | %s%d' | grep -i "Release Chromedriver version".)
Installing an network issues
When Appium is installed it needs to download Chromedriver, so there is the possibility that there could be network problems that make the install fail.
By default Chromedriver is retrieved from
To use a mirror of the ChromeDriver binaries use npm config property
npm install appium-chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
Or add the property into your
Another option is to use PATH variable
CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver npm install appium-chromedriver
It may also be necessary to adjust network proxy and firewall settings to allow the download to occur.