public class TestWaiter extends Object
| Constructor and Description |
|---|
TestWaiter() |
| Modifier and Type | Method and Description |
|---|---|
static <X> X |
waitFor(Callable<X> until)
Wait for the callable to return either "not null" or "true".
|
static <X> X |
waitFor(Callable<X> until,
long duration,
TimeUnit in)
Wait for the callable to return either "not null" or "true".
|
static org.openqa.selenium.WebElement |
waitForElement(org.openqa.selenium.By by,
int timeout,
org.openqa.selenium.WebDriver driver) |
public static <X> X waitFor(Callable<X> until)
until - Condition that we're waiting for.public static <X> X waitFor(Callable<X> until, long duration, TimeUnit in)
until - Condition that we're waiting for.duration - How long to wait.in - Unit in which duration is measured.public static org.openqa.selenium.WebElement waitForElement(org.openqa.selenium.By by,
int timeout,
org.openqa.selenium.WebDriver driver)
Copyright © 2015. All rights reserved.