How do you make Selenium 2.0 wait for the page to load?
You can also use the class: ExpectedConditions
to explicitly wait for an element to show up on the webpage before you can take any action further actions
You can use the ExpectedConditions
class to determine if an element is visible:
WebElement element = (new WebDriverWait(getDriver(), 10)).until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("input#houseName")));
See ExpectedConditions class Javadoc
for list of all conditions you are able to check.