how to test page loaded successfully?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you use selenium to upload a file?

718


How many types of waits in selenium?

474


Explain how you can handle frames using selenium 2.0?

471


Using selenium ide is it possible to get data from a particular html table cell?

639


What are the advantages and disadvantages of selenium ?

474






How to insert a breakpoint in selenium ide?

513


Have you used any crossbrowsertesting tool to run selenium scripts on cloud?

480


How do you simulate scroll down action?

530


What is the function of xpath?

505


Explain the different kinds of frameworks in automation?

482


How can we handle windows based pop up?

511


What is the difference between borland silk and selenium?

512


How does one execute java scripts function in selenium?

495


What are the advantages of using git hub for selenium?

463


Write a code snippet to perform mouse hover in webdriver.

476