public class WebDriverWait extends FluentWait<WebDriver>
FluentWait that uses WebDriver instances.| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_SLEEP_TIMEOUT |
FIVE_HUNDRED_MILLIS| Modifier | Constructor and Description |
|---|---|
protected |
WebDriverWait(WebDriver driver,
Clock clock,
Sleeper sleeper,
long timeOutInSeconds,
long sleepTimeOut) |
|
WebDriverWait(WebDriver driver,
long timeOutInSeconds)
Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others.
|
|
WebDriverWait(WebDriver driver,
long timeOutInSeconds,
long sleepInMillis)
Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others.
|
ignoreAll, ignoring, ignoring, pollingEvery, timeoutException, until, until, withMessage, withTimeoutpublic static final long DEFAULT_SLEEP_TIMEOUT
public WebDriverWait(WebDriver driver, long timeOutInSeconds)
driver - The WebDriver instance to pass to the expected conditionstimeOutInSeconds - The timeout in seconds when an expectation is calledequalspublic WebDriverWait(WebDriver driver, long timeOutInSeconds, long sleepInMillis)
driver - The WebDriver instance to pass to the expected conditionstimeOutInSeconds - The timeout in seconds when an expectation is calledsleepInMillis - The duration in milliseconds to sleep between polls.equalsprotected WebDriverWait(WebDriver driver, Clock clock, Sleeper sleeper, long timeOutInSeconds, long sleepTimeOut)
driver - The WebDriver instance to pass to the expected conditionsclock - The clock to use when measuring the timeoutsleeper - Object used to make the current thread go to sleep.timeOutInSeconds - The timeout in seconds when an expectation issleepTimeOut - The timeout used whilst sleeping. Defaults to 500ms called.Copyright © 2013. All Rights Reserved.