Skip to content

Instantly share code, notes, and snippets.

@madan-wego
Last active June 1, 2023 17:54
Show Gist options
  • Save madan-wego/0b47f1dd6b621f43636cfcd432f86546 to your computer and use it in GitHub Desktop.
Save madan-wego/0b47f1dd6b621f43636cfcd432f86546 to your computer and use it in GitHub Desktop.
BROWSER_MAJOR=$(google-chrome --version | sed 's/Google Chrome \([0-9]*\).*/\1/g') \
&& wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${BROWSER_MAJOR} -O chromedriver_version \
&& wget -q https://chromedriver.storage.googleapis.com/`cat chromedriver_version`/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
&& rm chromedriver_linux64.zip \
&& mv chromedriver /usr/local/bin \
&& chmod +x /usr/local/bin/chromedriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment