Skip to content

Commit

Permalink
use lastest geckodriver for travis (SeleniumHQ#3343)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney authored and lukeis committed Jan 9, 2017
1 parent 1e07a85 commit 82587ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if [[ ! -z $CHROME ]]; then
fi

if [[ ! -z $MARIONETTE ]]; then
export GECKODRIVER_VERSION=v0.12.0
curl -L -o geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz
export GECKODRIVER_DOWNLOAD=`curl -s 'https://api.github.com/repos/mozilla/geckodriver/releases/latest' | python -c "import sys, json; r = json.load(sys.stdin); print [a for a in r['assets'] if 'linux64' in a['name']][0]['browser_download_url'];"`
curl -L -o geckodriver.tar.gz $GECKODRIVER_DOWNLOAD
gunzip -c geckodriver.tar.gz | tar xopf -
chmod +x geckodriver && sudo mv geckodriver /usr/local/bin
fi
Expand Down

0 comments on commit 82587ea

Please sign in to comment.