Skip to content

Commit

Permalink
Merge pull request #1 from fsitsysteme/main
Browse files Browse the repository at this point in the history
Fix for Chrome-Driver download
  • Loading branch information
fsitsysteme authored Oct 15, 2023
2 parents 61c14b4 + a9e054c commit 8fde404
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions install_chromedriver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@

set -e

chromeVersion=$(google-chrome --version | cut -d " " -f 3)
chromeVersion="118.0.5993.70"

echo "Version: ${chromeVersion}"

# Cut off the minor version
chromeVersionMajor=${chromeVersion%.*}

# Detect matching chromedriver version
wget "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${chromeVersionMajor}" -O /opt/chromedriver_version.txt
wget "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${chromeVersionMajor}" -O /opt/chromedriver_version.txt

chromedriverVersion=$(cat /opt/chromedriver_version.txt)

wget https://chromedriver.storage.googleapis.com/${chromedriverVersion}/chromedriver_linux64.zip -O /usr/local/bin/chromdriver.zip
wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/${chromedriverVersion}/linux64/chrome-linux64.zip -O /usr/local/bin/chromdriver.zip

cd /usr/local/bin && unzip /usr/local/bin/chromdriver.zip

Expand Down

0 comments on commit 8fde404

Please sign in to comment.