Skip to content

Instantly share code, notes, and snippets.

View jconstance-amplify's full-sized avatar

Johnathan Constance jconstance-amplify

View GitHub Profile
@jconstance-amplify
jconstance-amplify / Install_selenium.sh
Last active June 20, 2022 23:20
SeleniumConf 2017 Amplify Code Snippets
install_selenium_server_standalone() {
local desired_version=${1:-latest}
# Create our shell user
init_shell_user "selenium" "*"
local selenium_download_site="http://selenium-release.storage.googleapis.com"
local selenium_releases=$(curl --silent --show-error "$selenium_download_site" | grep --only-matching --perl-regexp '[0-9\.-\w]+?/selenium-server-standalone.*?\.jar' | sort --reverse)
if [ "$desired_version" == "latest" ]; then