Skip to content

Commit

Permalink
feat: Bump appium-chromedriver (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 17, 2024
1 parent d3bdeaf commit 653b140
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,16 @@ jobs:
fail-fast: false
matrix:
include:
- chromedriverVersion: "113.0.5672.63"
apiLevel: 32
- apiLevel: 32
emuTag: google_apis
arch: x86_64
- chromedriverVersion: "83.0.4103.39"
apiLevel: 30
- apiLevel: 30
emuTag: google_apis
arch: x86
- chromedriverVersion: "2.44"
apiLevel: 28
- apiLevel: 28
emuTag: default
arch: x86
- chromedriverVersion: "2.20"
apiLevel: 23
- apiLevel: 23
emuTag: default
arch: x86

Expand Down Expand Up @@ -93,7 +89,7 @@ jobs:
cwd=$(pwd)
pushd "$cwd"
cd ~
CHROMEDRIVER_VERSION="${{ matrix.chromedriverVersion }}" appium driver install --source=local "$cwd"
appium driver install --source=local "$cwd"
appium driver doctor uiautomator2
nohup appium server \
--port=$APPIUM_TEST_SERVER_PORT \
Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,8 @@ There are several ways to provide a customized Chromedriver to UIA2 driver:

#### When installing the driver

_Note_: This only works for driver versions below 3.8.0

Specify the Chromedriver version in the `CHROMEDRIVER_VERSION` environment variable:

```bash
Expand Down Expand Up @@ -1744,19 +1746,13 @@ There is a possibility to automatically download the necessary chromedriver(s) i

### Troubleshooting Chromedriver Download Issues

When UIA2 driver is installed it automatically downloads Chromedriver, so there is a possibility
of network or other issues leading to an installation failure.

By default, Chromedriver is retrieved from `https://chromedriver.storage.googleapis.com/`.
To use a mirror of the above URL change the value of `CHROMEDRIVER_CDNURL` environemnt variable:

```bash
CHROMEDRIVER_CDNURL=https://npmmirror.com/mirrors/chromedriver appium driver install uiautomator2
```
Check the [Custom binaries url](https://github.com/appium/appium-chromedriver?tab=readme-ov-file#custom-binaries-url)
section of appium-chromedriver README for more details on how to customize the download CDN.

It may also be necessary to adjust network proxy and firewall settings for the above to work.

In case you would like skip the download of Chromedriver entirely, do it by
If you use a UIA2 driver below version 3.8.0, and you
would like skip the automated download of Chromedriver upon driver install, do it by
defining the `APPIUM_SKIP_CHROMEDRIVER_INSTALL` environment variable:

```bash
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
},
"dependencies": {
"appium-adb": "^12.5.2",
"appium-android-driver": "^9.10.1",
"appium-chromedriver": "^5.6.28",
"appium-android-driver": "^9.11.0",
"appium-uiautomator2-server": "^7.0.24",
"asyncbox": "^3.0.0",
"axios": "^1.6.5",
Expand Down

0 comments on commit 653b140

Please sign in to comment.