I used :
url ="https://superuser.com/questions/113219/go-back-to-previous-directory-in-shell"
driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);
driver.get(url);
but it's don't work: Website takes around 18 to 20 seconds to load but I don't get any exception.
Shouldn't I get TimedoutException in above case?
how can I set timeout on load the page? NOTE: I want change page load timeout in different point of my program.
Webdriver Version: 3.4.0
Firefox Version: 50
gecko driver 0.11.0(or 0.18.0)
You can use old version selenium and firefox : selenium 2.53.0 firefox 45 without gecko driver