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

How to handle browser (chrome) notifications in selenium?

478


What are the advantages of selenium grid?

504


When should one use selenium grid?

525


what is your approach clicking all the links which are available on the page?

496


Can you explain the framework which you have used in your selenium project?

467






What are the important selenium ide commands or selenese commands?

495


What are the different types of drivers available in webdriver?

475


Which web driver implementation is fastest?

529


Tell us how to perform right click using selenium webdriver?

440


What is the architecture of selenium rc?

508


What is the syntax of finding elements by class using css selector?

518


Why selenium rc is used?

568


How you can switch between frames?

524


Can we use selenium rc to drive tests on two different browsers on one operating system without selenium grid?

470


What is the difference between selenium and sikuli?

653