Last active
September 13, 2019 20:52
-
-
Save shikhir-arora/43fcf0b83a8884323850979f4b79dd9a to your computer and use it in GitHub Desktop.
install latest chromedriver (dev/canary) on linux-x64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install latest 78 Chromedriver (https://chromedriver.chromium.org/downloads/version-selection) | |
# note: "Please don't rely on the LATEST_RELEASE file without a version suffix. It exists for backward compatibility only, and will be removed in the near future." | |
CHROME_VERSION=$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE_78 -q -O -) | |
echo "Setting up Chromedriver version $CHROME_VERSION ..." | |
CHROME_URL="https://chromedriver.storage.googleapis.com/${CHROME_VERSION}/chromedriver_linux64.zip" | |
wget -q -O /tmp/chromedriver.zip "$CHROME_URL" | |
sudo unzip -o /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ | |
sudo chmod a+x /usr/local/bin/chromedriver | |
type chromedriver >/dev/null 2>&1 || | |
echo "Failed to install Chromedriver!" | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment