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 |
in real time, where do u log defects using selenium?
How to execute javascript in selenium?
Give an example of the languages supported by webdriver?
What differs the configuration of Selenium Selenium 2.0 1.0?
Explain me what could be the cause of selenium webdriver test to fail?
What is the difference between MaxSessions vs. Selenium grid MaxInstances properties?
What is the selenese command to show the value of a variable in the log file?
How to highlight element using selenium webdriver?
How will you use selenium to upload a file?
What is object repository in selenium webdriver?
What is desired capabilities?
What kind of mouse actions can be performed in selenium?