-
-
Save natenolting/ed2bf2abfe444776aad4 to your computer and use it in GitHub Desktop.
Get Selenium and Firefox for headless testing in vagrant box
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
#!/usr/bin/env bash | |
# Get Selenium and Firefox for headless testing in vagrant box | |
if [ ! -d "/var/selenium" ]; then | |
sudo mkdir /var/selenium | |
cd /var/selenium | |
sudo wget http://goo.gl/PJUZfa selenium-server-standalone.jar | |
fi | |
sudo yum -y install java-1.8.0-openjdk-headless.x86_64 | |
sudo yum -y install firefox.x86_64 | |
sudo yum -y install xorg-x11-server-Xvfb.x86_64 | |
# then add a alias to your bash profile | |
# alias sss='sudo DISPLAY=:1 xvfb-run java -jar /var/selenium/PJUZfa' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment