Skip to content

Instantly share code, notes, and snippets.

@pranav7
Created October 27, 2014 11:30
Show Gist options
  • Save pranav7/ff8cbdfad6a9f8244d23 to your computer and use it in GitHub Desktop.
Save pranav7/ff8cbdfad6a9f8244d23 to your computer and use it in GitHub Desktop.
Capybara.register_driver :chrome do |app|
# optional
client = Selenium::WebDriver::Remote::Http::Default.new
# optional
client.timeout = 120
Capybara::Selenium::Driver.new(app, :browser => :chrome, :http_client => client)
end
Capybara.javascript_driver = :chrome
# All your other and default configurations can remain the same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment