Skip to content

Instantly share code, notes, and snippets.

@bryckbost
Created June 22, 2011 14:54
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • 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.
@erlikh
Copy link

erlikh commented Jun 24, 2011

Typo in line 3. Should be:
Capybara::Driver::Selenium.new(app, :browser => :chrome)

@bryckbost
Copy link
Author

I grabbed this hot off the readme. Seems to be working fine for me. Were you getting an error?

@houen
Copy link

houen commented Sep 8, 2011

This was a LIFESAVER! THX!

@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