Skip to content

Instantly share code, notes, and snippets.

@lucassus
Last active March 10, 2017 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucassus/4542446 to your computer and use it in GitHub Desktop.
Save lucassus/4542446 to your computer and use it in GitHub Desktop.
require 'selenium-webdriver'
require 'selenium/webdriver/remote/http/curb'
Capybara.register_driver :selenium do |app|
client = Selenium::WebDriver::Remote::Http::Curb.new
Capybara::Selenium::Driver.new(app, http_client: client)
end
Capybara.javascript_driver = :selenium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment