I want to get a page load exception, but still have no results. I use implicitlyWait to set a timer to throw exceptions.
WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(1, TimeUnit.MILLISECONDS); driver.get("http://www.rambler.ru"); driver.quit();
Can someone please update me with suggestions? I need this to make sure that the page loading will not be infinite, and if the loading time is longer than I defined in the timer β exception exception as a result and skip TC (as failed).
Thank you Vladimir
java testng timeout webdriver
Volodymyr prysiazhniuk
source share