lib/speedos/page.rb in speedos-0.0.4 vs lib/speedos/page.rb in speedos-0.0.5

- old
+ new

@@ -35,10 +35,15 @@ @driver ||= reset_driver end def reset_driver Capybara.register_driver :selenium do |app| - Capybara::Selenium::Driver.new(app, :profile => firefox_profile) + http_client = Selenium::WebDriver::Remote::Http::Default.new + http_client.timeout = 300 + Capybara::Selenium::Driver.new(app, + :profile => firefox_profile, + :http_client => http_client, + ) end Capybara.default_driver = :selenium @driver = Capybara::Session.new(:selenium) end