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 5183b3c commit e6d17c8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,17 @@ def make_virtualenv(env="dev", configure_apache=False, clone_repo=False, branch=
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()
if int(google_chrome_version[:google_chrome_version.index(".")]) < 115:
caller('wget https://chromedriver.storage.googleapis.com/' + version + '/chromedriver_linux64.zip')
zip_name = 'chromedriver_linux64.zip'
caller('wget https://chromedriver.storage.googleapis.com/' + version + '/' + zip_name)

else:
caller('wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/' + version + '/linux64/chromedriver-linux64.zip')
zip_name = 'chromedriver-linux64.zip'
caller('wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/' + version + '/' + zip_name)
caller('ls -l')
caller('rm -f chromedriver')
caller('unzip -o chromedriver-linux64.zip')
caller('unzip -o -j' + zip_name)
caller('ls -l')
caller('rm chromedriver-linux64.zip*')
caller('rm ' + zip_name + '*')
caller('ls -l')


Expand Down

0 comments on commit e6d17c8

Please sign in to comment.