I have a page that sometimes loads in over a minute. Assume this is the expected behavior and wont change. In these cases, I get Net::ReadTimeout
.
Note that this is after navigating to a page by clicking a button on the previous page, not an ajax request. Therefore Capybara.using_wait_time
doesn't help.
I have tried a number of radical things (some of which I knew wouldn't work) like:
- Setting
page.driver.browser.manage.timeouts
'simplicit_wait
,script_timeout
andpage_load
. - Looping through the entire object space and setting all
Selenium::WebDriver::Remote::Http::Default
'stimeout
value. - Looping through the entire object space and setting all
Net::HTTP
'sread_timeout
. page.driver.browser.send(:bridge).http.instance_variable_get(:@http).read_timeout=
None seem to work. This should be very trivial, still I couldn't find a way to do it.
If you know of a webdriver agnostic solution that would be great. If not - I am using selenium.