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

What is the wait? How many types of waits in selenium?

501


How does one capture a page title in selenium 2.0?

515


What the webdriver supported mobile testing drivers do you know?

485


How do you read test data from excels?

496


Which are the languages supported by selenium rc?

488






How to type text in a textbox using selenium?

502


How to create and run testng.xml?

490


Tell us how will you use selenium to upload a file?

478


Name the different types of waits in webdriver.

515


From selenium ide how you can execute a single line?

649


How to do drag and drop in selenium?

519


What are the main advantages of selenium?

494


Explain the difference between single and double slash in x-path?

543


What are heightened privileges browsers?

613


How to scroll web page down or up using selenium webdriver?

480