how to test page loaded successfully?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

427


How can we fetch a text written over an element?

509


Explain in selenium ide how can you debug the tests?

477


How will you find an element using selenium?

500


What regular expression special character(s) means "any character?"

492






What are the open-source frameworks supported by selenium webdriver?

554


what are the testing frameworks used in selenium?

524


Explain what is the main difference between web-driver and rc?

460


What is the difference between setspeed() and sleep() methods?

565


Explain how you can debug the tests in selenium ide?

506


When to use autoit?

556


What kind of testing does selenium support?

488


What if you have written your own element locator and how would you test it?

642


How to run selenium webdriver test from the command line?

515


What is page object model in selenium?

554