Skip to content

Commit

Permalink
Update URL for downloading compatible chromedriver for later versions…
Browse files Browse the repository at this point in the history
… of chrome
  • Loading branch information
asset-web committed Nov 10, 2023
1 parent 55aa1d4 commit 2927146
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ def make_virtualenv(env="dev", configure_apache=False, clone_repo=False, branch=
# Only install the chrome driver if google chrome is installed.
if caller('which google-chrome'):
# Download the correct chrome driver version for the version of google chrome that is currently installed,
# ref: https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection#:~:text=Each%20version%20of%20ChromeDriver%20supports,3683.
# ref: https://chromedriver.chromium.org/downloads/version-selection
google_chrome_version = caller('google-chrome --version').strip("Google Chrome ")
chrome_driver_version = google_chrome_version[:google_chrome_version.rindex(".")]
version = urllib2.urlopen('https://chromedriver.storage.googleapis.com/LATEST_RELEASE_'+chrome_driver_version).read()
caller('wget https://chromedriver.storage.googleapis.com/' + version + '/chromedriver_linux64.zip')
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/chrome-linux64.zip')
caller('ls -l')
caller('rm -f chromedriver')
caller('unzip -o chromedriver_linux64.zip')
Expand Down

0 comments on commit 2927146

Please sign in to comment.