Skip to content

Instantly share code, notes, and snippets.

@danielmorrison
Forked from bryckbost/gist:1040263
Created September 1, 2011 13:16
Show Gist options
  • Save danielmorrison/1186144 to your computer and use it in GitHub Desktop.
Save danielmorrison/1186144 to your computer and use it in GitHub Desktop.
Capybara 1.0 and Chrome
# env.rb
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Capybara.javascript_driver = :chrome
Download chromedriver from http://code.google.com/p/selenium/downloads/list
mv chromedriver to /usr/local/bin so it's in your path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment