ConditionRunner runner = new DefaultConditionRunner(selenium);
Condition condition = new Text("cheese");
runner.waitFor(condition);
If you're using Selenium WebDriver, from the 2.0 alphas, you can use
"Wait" interface:
Wait<WebDriver> wait = new WebDriverWait(driver, 15);
ExpectedCondition<WebElement> condition =
new PresenceOfElement(By.id("foo"));
WebElement found = wait.until(condition);
Writing "PrescenceOfElement" is left as an exercise for the reader :)
Simon
> --
> You received this message because you are subscribed to the Google Groups "Selenium Users" group.
> To post to this group, send email to seleniu...@googlegroups.com.
> To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
>
>
Ross
--