Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 19d18f4

Browse files
authored
HOTFIX: Chromedriver Failing Fix for Travis (#19189)
* Hotfix: Chromedriver is failing in Travis - Hardcoding version for better support * Add in condition for both Chrome Browsers - Latest chromedriver for stable - Beta version for beta * Add in missing passing arg\ * Add in missing condition closure * Fix typo on TEST input variable
1 parent 3185d5c commit 19d18f4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/setup_travis.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ toplevel=$(git rev-parse --show-toplevel)
55
function setup_chrome {
66
# Install the latest version of the chromedriver
77
version=$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -q -O -)
8-
url="https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"
8+
9+
# Mismatch on Chromedriver Latest and Chrome Beta, hardcode for Chrome Beta
10+
if [ "$1" == "chrome beta" ]; then
11+
url="https://chromedriver.storage.googleapis.com/83.0.4103.14/chromedriver_linux64.zip"
12+
elif [ "$1" == "chrome stable" ]; then
13+
url="https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"
14+
fi
15+
916
wget -O /tmp/chromedriver.zip ${url}
1017
sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
1118
sudo chmod a+x /usr/local/bin/chromedriver
@@ -44,7 +51,7 @@ function setup_docker {
4451

4552
case $TEST in
4653
*chrome*)
47-
setup_chrome
54+
setup_chrome "$TEST"
4855
browser_setup
4956
;;
5057
*firefox*) # Install the latest version of geckodriver

0 commit comments

Comments
 (0)