Skip to content

Commit 7fb2a67

Browse files
committed
Update Linuxfile.sh to always use the latest chromedriver
1 parent 60ddc6e commit 7fb2a67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integrations/linux/Linuxfile.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ sudo apt-get -f install -y --force-yes firefox
5252

5353
# Install more dependencies
5454
sudo apt-get update
55+
sudo apt-get install -y --force-yes curl
5556
sudo apt-get install -y --force-yes xvfb
5657
sudo apt-get install -y --force-yes build-essential chrpath libssl-dev libxft-dev
5758
sudo apt-get install -y --force-yes libfreetype6 libfreetype6-dev
@@ -75,7 +76,8 @@ sudo apt-get -f install -y --force-yes
7576
sudo dpkg -i google-chrome-stable_current_amd64.deb
7677

7778
# Install Chromedriver
78-
sudo wget -N http://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip -P ~/Downloads
79+
CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
80+
sudo wget -N http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip -P ~/Downloads
7981
sudo unzip -o ~/Downloads/chromedriver_linux64.zip -d ~/Downloads
8082
sudo chmod +x ~/Downloads/chromedriver
8183
sudo rm -f /usr/local/share/chromedriver

0 commit comments

Comments
 (0)