public class WaitForConditionTimer extends Object
WaitForConditionTimer.ITimerCallback.| Modifier and Type | Class and Description |
|---|---|
static interface |
WaitForConditionTimer.ITimerCallback
Holds the method that is called to check the condition associated with a
WaitForConditionTimer. |
| Constructor and Description |
|---|
WaitForConditionTimer(org.openqa.selenium.By locator,
WaitForConditionTimer.ITimerCallback timerCallback)
Constructs a
WaitForConditionTimer with the given locator
pointing to an element and the given timerCallback holding a condition to
be met. |
| Modifier and Type | Method and Description |
|---|---|
void |
waitUntil(long waitTime)
Blocks for a given time, or until the associated condition is met.
|
public WaitForConditionTimer(org.openqa.selenium.By locator,
WaitForConditionTimer.ITimerCallback timerCallback)
WaitForConditionTimer with the given locator
pointing to an element and the given timerCallback holding a condition to
be met.locator - the element locator to be usedtimerCallback - the method called to check the condition to be metpublic void waitUntil(long waitTime)
throws WidgetTimeoutException
Only an InterruptedException will prematurely halt the waiting
process.
waitTime - the time to wait in millisecondsWidgetTimeoutExceptionCopyright © 2018. All rights reserved.