I am using the watir-webdriver ruby gem. It starts the browser (Chrome) and begins to load a page. The page is loading too slowly, and watir-webdriver raises a timeout error. Ho
I have had the problem of timeouts as well. My understanding from online research is that after Selenium WebDriver encounters a timeout, it gets into bad shape and misbehaves (multithreading issue). I have followed the advices found here:
https://github.com/watir/watir-webdriver/issues/137
I implemented active killing (instead of browser.close) and restarting of the Watir::Browser
after any exception rescue.