Tag Info

New answers tagged

0

If you are using firefox then you can set preference for default timeout: fp = webdriver.FirefoxProfile() fp.set_preference("http.response.timeout", 5) fp.set_preference("dom.max_script_run_time", 5) driver = webdriver.Firefox(firefox_profile=fp) driver.get("http://www.google.com/") This will stop page load after 5 seconds.



Top 50 recent answers are included