I have a page that sometimes loads in a minute. Suppose this expected behavior does not change. In these cases, I get Net::ReadTimeout .
Please note that this is after going to the page by clicking the button on the previous page, not an ajax request. Therefore, Capybara.using_wait_time does not help.
I tried a few radical things (some of which I knew would not work):
- Setting
page.driver.browser.manage.timeouts implicit_wait , script_timeout and page_load . - Quoting over the entire space of objects and setting the entire value of
Selenium::WebDriver::Remote::Http::Default timeout . - Cycling through the entire space of objects and setting all
Net::HTTP read_timeout . page.driver.browser.send(:bridge).http.instance_variable_get(:@http).read_timeout=
No, it seems to work. This should be very trivial, but I could not find a way to do this.
If you know that an agnostic webdriver solution would be great. If not, I use selenium.
source share