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 Dynamic xpath in selenium ?
List the parameters that one needs to pass in selenium.
How is selenium different from qtp?
How to select value in a dropdown?
How can we capture screenshots in selenium?
What methods of robot class do you know?
Can captcha and bar code reader be automated by using selenium?
What is the alternative to driver.get() method to open an url using selenium webdriver?
What automation tools could be used for post-release validation with continuous integration?
Why selenium rc is used?
Explain the meaning of assertion in selenium and what are the types of assertion?
Which technique should you consider using throughout the script “if there is neither frame id nor frame name”?