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

Explain what is assertion in selenium and what are the types of assertion?

467


What regular expression special character(s) means "any character?"

492


Mention what is desired capability? How is it useful in terms of selenium?

494


List some advantages of test automation?

544


What programming language is best for writing selenium tests?

434






What are the important selenium ide commands or selenese commands?

506


How to press enter key on text box in selenium webdriver?

507


How to enforce the title of the website?

523


How do you read test data from excels?

501


How can we submit a form in selenium?

470


Which web driver implementation is the fastest?

542


How to submit a form using selenium webdriver?

534


What are its advantages of pom?

521


Are you familiar with selenium? If yes, what is it?

819


Tell us how to perform right click using selenium webdriver?

444