Created
April 8, 2013 18:27
-
-
Save indirect/5339229 to your computer and use it in GitHub Desktop.
change selenium timeout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'selenium/webdriver' | |
Capybara.register_driver :selenium_with_long_timeout do |app| | |
client = Selenium::WebDriver::Remote::Http::Default.new | |
client.timeout = 3600 | |
Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => client) | |
end | |
Capybara.current_driver = :selenium_with_long_timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment