Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Download latest Selenium Standalone Server (shell script)
#!/usr/bin/env bash
# Corey Goldberg 2018
#
# download latest release of Selenium Standalone Server
#
# requires:
# * `curl`
# * `xpath` utility from the `XML::XPath` Perl module. On Debian,
# this is provided by the `libxml-xpath-perl` package.
set -e
baseurl="https://selenium-release.storage.googleapis.com"
path=$(curl -sS "$baseurl" | xpath -q -e "./ListBucketResult/Contents/Key/text()" |
grep "selenium-server-standalone" | sort -V | tail -n 1)
echo "Downloading: $(basename "${path}")"
curl -O# "${baseurl}/${path}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.