Created
June 22, 2011 14:54
-
-
Save bryckbost/1040263 to your computer and use it in GitHub Desktop.
Capybara 1.0 and Chrome
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
# env.rb | |
Capybara.register_driver :selenium do |app| | |
Capybara::Selenium::Driver.new(app, :browser => :chrome) | |
end | |
Download chromedriver from http://code.google.com/p/selenium/downloads/list | |
mv chromedriver to /usr/local/bin so it's in your path. |
Don't forget to chmod to 755 the chromedriver executable, otherwise system might be unavailable to see it
this saved my day!
install chromedriver:
rm chrome*
curl 'http://chromium.googlecode.com/files/chromedriver_linux32_18.0.995.0.zip'
unzip chrome*
sudo mv chromedriver > /usr/local/bin
rm chrome*
If you're on a Mac you can use HomeBrew: "brew install chromedriver"
Actually, the list of download links lies in http://code.google.com/p/chromedriver/downloads/list
Actually, the list of download links lies in http://code.google.com/p/chromedriver/downloads/list
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a LIFESAVER! THX!