Skip to content

Instantly share code, notes, and snippets.

@chodorowicz
Last active August 4, 2016 14:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chodorowicz/0cbe8d3351d4822a7852f338ce92fced to your computer and use it in GitHub Desktop.
Save chodorowicz/0cbe8d3351d4822a7852f338ce92fced to your computer and use it in GitHub Desktop.
running Selenium test on CI server (SemaphoreCI)
# run your usual build scripts e.g.
# npm install
# npm run build
# download selenium standalone jar
wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar
# run selenium using xvfb
# set web driver path
# get path to chrome.driver ➡️ which chromedriver
sudo xvfb-run -a java -jar selenium-server-standalone-2.53.0.jar -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver &
# run server in background, e.g. Express
node server.js &
# run test which use selenium server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment