well, then let's try the other thing that is suggested on that page to fix cukes

This commit is contained in:
Florian Staudacher 2012-05-10 22:09:31 +02:00
parent efa79a4ad7
commit 9f586e915f

View file

@ -103,10 +103,11 @@ end
# give firefox more time to complete requests
# http://ihswebdesign.com/knowledge-base/fixing-selenium-timeouterror/
Capybara.register_driver :selenium do |app|
http_client = Selenium::WebDriver::Remote::Http::Default.new
http_client.timeout = 100
Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => http_client)
After do |scenario|
if scenario.exception.is_a? Timeout::Error
# restart Selenium driver
Capybara.send(:session_pool).delete_if { |key, value| key =~ /selenium/i }
end
end
# # https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection