java - PageloadTimeout() not working in IE11 with selenium 3.4 -
driver.manage().timeouts().pageloadtimeout(20,timeunit.seconds);
ie11 throws error below when use pageload make selenium wait until page loads, otherwise works fine in chrome , firefox irrespective if use in @test or in actual method. using java selenium 3.4
error
org.openqa.selenium.invalidargumentexception: invalid timeout type specified: page load
you can use javascriptexecutor
pageload below:
private static boolean isloadcomplete(webdriver driver) { return ((javascriptexecutor) driver).executescript("return document.readystate").equals("loaded") || ((javascriptexecutor) driver).executescript("return document.readystate").equals("complete"); }
hope :)
Comments
Post a Comment