Created
July 31, 2013 20:36
-
-
Save jhedstrom/6125918 to your computer and use it in GitHub Desktop.
Running Firefox headless for selenium/Behat tests
This file contains hidden or 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
if [ ! -f /tmp/.X5-lock ]; then /usr/bin/Xvfb :5 -ac -screen 0 1024x768x8 & fi | |
export DISPLAY=:5.0 # firefox needs this to know where to find a display to run on | |
java -jar /opt/selenium/selenium-server-standalone-2.26.0.jar > /dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment