Skip to content

Commit

Permalink
Bug fix: TMMA-482: Update URL for downloading compatible chromedriver…
Browse files Browse the repository at this point in the history
… for later versions of chrome
  • Loading branch information
asset-web committed Nov 10, 2023
1 parent 968961f commit e2708de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def make_virtualenv(env="dev", configure_apache=False, clone_repo=False, branch=
google_chrome_version = caller('google-chrome --version').strip("Google Chrome ")
chrome_driver_version = google_chrome_version[:google_chrome_version.rindex(".")]
version = urllib2.urlopen('https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_'+chrome_driver_version).read()
caller('wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/' + version + '/linux64/chromedriver-linux64.zip')
if int(version) < 115:
caller('wget https://chromedriver.storage.googleapis.com/' + version + '/chromedriver_linux64.zip')
else:
caller('wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/' + version + '/linux64/chromedriver-linux64.zip')
caller('ls -l')
caller('rm -f chromedriver')
caller('unzip -o chromedriver-linux64.zip')
Expand Down

0 comments on commit e2708de

Please sign in to comment.