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

How does you identify the list of links present on the page

1 Answers  


What are testing types supported by selenium?

0 Answers  


How do you launch ie/chrome browser?

0 Answers  


What are the significant changes in upgrades in various selenium versions?

0 Answers  


How you can switch back from a frame?

0 Answers  






List some of the operating systems that are supported by selenium webdriver.

0 Answers  


Explain what can cause a selenium ide test to fail?

0 Answers  


What is selenium? What are the different selenium components?

0 Answers  


What is the difference between close() and quit()?

0 Answers  


Mention what are the capabilities of selenium webdriver or selenium 2.0?

0 Answers  


Other than the default port 4444 how you can run selenium server?

0 Answers  


difference between Close() and Quit()?

3 Answers   HCL,


Categories