how to test page loaded successfully?

Answers were Sorted based on User's Feedback



how to test page loaded successfully?..

Answer / surya

using WebDriverWait we can check as we can wait until completion of expected condition.

ex:
WebDriverWait wait = new WebDriverWait(driver, 10);

WebElement elem = driver.findElement(By.id("myInvisibleElement"));
elem.click();
wait.until(ExpectedConditions.visibilityOf(elem));

please correct me if i m wrong.

Is This Answer Correct ?    2 Yes 0 No

how to test page loaded successfully?..

Answer / dolly

We can ensure that the page is loaded completely by using javascriptwait method, by defining the wait time to check the condition.
(“return document.readyState”.equal(complete) ---boolean(Y/N) – true means its loaded completely.
Using TRY n Catch method (catch the exception saying page did not load in the stipulated time)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Selenium Interview Questions

what is the difference between type keys and type commands?

1 Answers  


What is selenium 1.0?

0 Answers  


What are the features of selenium ide ?

0 Answers  


Mention what are the advantages of using git hub for selenium?

0 Answers  


Explain the different kinds of frameworks in automation?

0 Answers   Accenture,






What are the testing types that can be supported by selenium?

0 Answers  


Can captcha and bar code reader be automated by using selenium?

0 Answers  


How are selenium ide, webdriver and selenium rc different from each other?

0 Answers  


List the advantages of webdriver over selenium server?

0 Answers  


How can we maximize browser window in selenium?

0 Answers  


What does a knot do on the selenium grid?

0 Answers  


How can you use the recovery scenario in selenium webdriver?

0 Answers  


Categories