Skip to content

Commit

Permalink
use new chrome api for driver version
Browse files Browse the repository at this point in the history
  • Loading branch information
wllgrnt committed Sep 14, 2023
1 parent b4b1c97 commit 89a1d7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O
sudo apt-get install ./google-chrome-stable_current_amd64.deb
CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
echo "using chrome version $CHROME_MAIN_VERSION"
CHROMEDRIVER_VERSION=`curl -s "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
echo "using driver version $CHROMEDRIVER_VERSION"
curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
unzip chromedriver_linux64.zip -d ~/bin
ulimit -c unlimited -S # enable core dumps
Expand Down

0 comments on commit 89a1d7a

Please sign in to comment.