Skip to content

Instantly share code, notes, and snippets.

@bryckbost
Created June 22, 2011 14:54
Show Gist options
  • Save bryckbost/1040263 to your computer and use it in GitHub Desktop.
Save bryckbost/1040263 to your computer and use it in GitHub Desktop.
Capybara 1.0 and Chrome
# 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.
@vidmantas
Copy link

Don't forget to chmod to 755 the chromedriver executable, otherwise system might be unavailable to see it

@jjoe64
Copy link

jjoe64 commented Dec 2, 2011

this saved my day!

@grosser
Copy link

grosser commented Feb 5, 2012

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*

@jerryclinesmith
Copy link

If you're on a Mac you can use HomeBrew: "brew install chromedriver"

@rplaurindo
Copy link

Actually, the list of download links lies in http://code.google.com/p/chromedriver/downloads/list

@rplaurindo
Copy link

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