so i want to wait until the page is loaded completely, we have loading
image tht is visible until page loads completely (once the page is all
loaded, it becomes invisible).
with the selenium RC , i was checking using
selenium.isVisible(elementID); and this worked perfectly.
when i moved to webdriver..m using
WebDriverWait wait = new WebDriverWait(driver, 30);
Boolean element =
wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(HTMLElement.IS_WAIT_PRESENT)));
but here, it seems it is not waiting until it loads completely and
immediately executes next command that leads to "Unable to locate element"
error.
if i put sleep in conjunction with above wait code, then it works fine...
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
i am trying to avoid using sleeps...is there any other way
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/R4pzxTrIAc4J.
To post to this group, send email to webdriver@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.