Created
November 15, 2013 03:06
-
-
Save kfatehi/7478460 to your computer and use it in GitHub Desktop.
Headless Chromedriver CI Server Setup Notes
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
# Get google chrome and Xvfb | |
# Thanks http://www.howopensource.com/2011/10/install-google-chrome-in-ubuntu-11-10-11-04-10-10-10-04/ | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
apt-get -y update | |
apt-get -y install xvfb google-chrome-stable | |
# Get chromedriver 2.6 installed and on your PATH | |
curl -O http://chromedriver.storage.googleapis.com/2.6/chromedriver_linux64.zip | |
unzip -d /usr/local/bin chromedriver_linux64.zip | |
# Test if google-chrome will find the Xvfb display | |
function startChrome { | |
Xvfb :0 & | |
export DISPLAY=:0 | |
google-chrome | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment