Forked from mikegehard/Setting longer HTTP timeout in capybara
Created
October 27, 2014 13:30
-
-
Save drogus/07b36333ad4dce8da77e to your computer and use it in GitHub Desktop.
Revisions
-
drogus revised this gist
Oct 27, 2014 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,7 @@ 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 -
Mike Gehard created this gist
Apr 15, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # We need this to fix the random timeout error that we were seeing in CI. # May be related to: http://code.google.com/p/selenium/issues/detail?id=1439 Capybara.register_driver :selenium_with_long_timeout do |app| client = Selenium::WebDriver::Remote::Http::Default.new client.timeout = 120 Capybara::Driver::Selenium.new(app, :browser => :firefox, :http_client => client) end Capybara.javascript_driver = :selenium_with_long_timeout