Skip to content

Instantly share code, notes, and snippets.

@shikhir-arora
Last active September 13, 2019 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikhir-arora/43fcf0b83a8884323850979f4b79dd9a to your computer and use it in GitHub Desktop.
Save shikhir-arora/43fcf0b83a8884323850979f4b79dd9a to your computer and use it in GitHub Desktop.
install latest chromedriver (dev/canary) on linux-x64
#!/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