run-selenium.sh 365 B

123456789101112
  1. #!/usr/bin/env sh
  2. set -e
  3. echo ' Starting XVFB'
  4. sh -e /etc/init.d/xvfb start
  5. export DISPLAY=:99.0
  6. sleep 4
  7. echo ' Downloading selenium'
  8. curl -L http://selenium-release.storage.googleapis.com/2.52/selenium-server-standalone-2.52.0.jar > selenium.jar
  9. echo ' Running selenium'
  10. java -jar selenium.jar -log /tmp/webdriver.log > /tmp/webdriver_output.txt 2>&1 &