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

Commit ff161ea

Browse files
authored
Statically write versions for Chromedriver (#19406)
- For an unknown reason, Travis is pulling one version below on stable - This causes a mismatch in Chromedriver version to Chrome - Statically update for now and updte statically versioned Beta - Also updating Geckodriver proactively
1 parent a156d2d commit ff161ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/setup_travis.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ 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+
static="84.0.4147.30"
89

910
# Mismatch on Chromedriver Latest and Chrome Beta, hardcode for Chrome Beta
1011
if [ "$1" == "chrome beta" ]; then
11-
url="https://chromedriver.storage.googleapis.com/83.0.4103.14/chromedriver_linux64.zip"
12+
url="https://chromedriver.storage.googleapis.com/85.0.4183.38/chromedriver_linux64.zip"
1213
elif [ "$1" == "chrome stable" ]; then
13-
url="https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip"
14+
url="https://chromedriver.storage.googleapis.com/${static}/chromedriver_linux64.zip"
1415
fi
1516

1617
wget -O /tmp/chromedriver.zip ${url}
@@ -21,7 +22,7 @@ function setup_chrome {
2122
function setup_firefox {
2223
#version=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | grep tag_name | cut -d '"' -f 4)
2324
# hard-code latest version, since apparently the above `curl` is fucking up in travis
24-
version="v0.23.0"
25+
version="v0.26.0"
2526
url="https://github.com/mozilla/geckodriver/releases/download/${version}/geckodriver-${version}-linux64.tar.gz"
2627
wget -O /tmp/geckodriver.tar.gz ${url}
2728
sudo tar -xvf /tmp/geckodriver.tar.gz -C /usr/local/bin/

0 commit comments

Comments
 (0)