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 |
How to insert a breakpoint in selenium ide?
What types of cases can be automated with Selenium?
Have you used any crossbrowsertesting tool to run selenium scripts on cloud?
Which is the command used for displaying the values of a variable into the output console or log?
How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?
List the different types of drivers in webdriver.
What is fluent wait in selenium?
How to assert text of webpage using selenium 2.0?
How to get the title of the page?
What is desired capabilities?
How to insert a comment in selenium ide?
What are selenium 1 and selenium 2?