Skip to content

Instantly share code, notes, and snippets.

@jpcaparas
Created June 21, 2019 04:14
Show Gist options
  • Save jpcaparas/7200cdd02051b549d9d1c2812a4aff2f to your computer and use it in GitHub Desktop.
Save jpcaparas/7200cdd02051b549d9d1c2812a4aff2f to your computer and use it in GitHub Desktop.
Selenium Standalone Server wrapper
# usr/local/bin/selenium
#!/usr/bin/env bash
set -e
# Download from https://www.seleniumhq.org/download/
SELENIUM_PATH=/opt/selenium/selenium-server-latest.jar
SELENIUM_PORT=5555
# Download from http://chromedriver.chromium.org/downloads
CHROMEDRIVER_PATH="$(which chromedriver)"
java -Dselenium.LOGGER.level=ALL -Dwebdriver.chrome.driver="$CHROMEDRIVER_PATH" -jar "$SELENIUM_PATH" -port $SELENIUM_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment