how to test page loaded successfully?
Answers were Sorted based on User's Feedback
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 |
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 |
What is pom (page object model)?
How selenium grid hub keeps in touch with rc slave machine?
What is framework and what are the frameworks available in rc?
Does selenium support mobile internet testing?
What are the different types of waits available in webdriver?
How does testng allow you to state dependencies?
How to click on a hyperlink using selenium webdriver?
How do you simulate scroll down action?
what is the difference between 2.0 & 3.0
Write a code snippet to navigate back and forward in browser history?
Explain how to iterate through options in test script?
How can the user get a text from a web element?