Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save drogus/07b36333ad4dce8da77e to your computer and use it in GitHub Desktop.
Save drogus/07b36333ad4dce8da77e to your computer and use it in GitHub Desktop.
Capybara.register_driver :selenium_with_long_timeout do |app|
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120
Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => client)
end
Capybara.javascript_driver = :selenium_with_long_timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment