RE: Explicit wait while page is loading

Hi,
I am using Explicit Wait, but I am not getting “NoSuchElementFound”exception when the page is loading even after the time specified in the WebDriverWait object. Just wanted to know, if there are any wait methods which will act, if the page is being loaded. I am using Selenium WebDriver in Java
Thank You!

mohan191289 Default Asked on January 5, 2015 in Selenium WebDriver.
Add Comment
2 Answers

Default Answered on January 6, 2015.

Hi Bikram,

Thank You for the solution. I have a requirement to throw an exception, if the webpage takes more time to load, but the wait method is trying to locate the element only after the complete web page is loaded. Do we have any method that will throw an exception if the webpage is still loading even after a given time limit or any thought as how to handle this.

Thank You!

on January 7, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.