Last active
August 4, 2016 14:23
-
-
Save chodorowicz/0cbe8d3351d4822a7852f338ce92fced to your computer and use it in GitHub Desktop.
running Selenium test on CI server (SemaphoreCI)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run test which use selenium server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment