public class WebDriverWait extends FluentWait<org.openqa.selenium.WebDriver>
FluentWait
that uses WebDriver instances.DEFAULT_SLEEP_TIMEOUT
Constructor and Description |
---|
WebDriverWait(org.openqa.selenium.WebDriver driver,
java.time.Clock clock,
Sleeper sleeper,
long timeoutInSeconds,
long sleepInMillis)
Deprecated.
|
WebDriverWait(org.openqa.selenium.WebDriver driver,
java.time.Duration timeout)
Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others.
|
WebDriverWait(org.openqa.selenium.WebDriver driver,
java.time.Duration timeout,
java.time.Duration sleep)
Wait will ignore instances of NotFoundException that are encountered (thrown) by default in
the 'until' condition, and immediately propagate all others.
|
WebDriverWait(org.openqa.selenium.WebDriver driver,
java.time.Duration timeout,
java.time.Duration sleep,
java.time.Clock clock,
Sleeper sleeper) |
WebDriverWait(org.openqa.selenium.WebDriver driver,
long timeoutInSeconds)
Deprecated.
Instead, use
WebDriverWait(WebDriver, Duration) . |
WebDriverWait(org.openqa.selenium.WebDriver driver,
long timeoutInSeconds,
long sleepInMillis)
Deprecated.
Instead, use
WebDriverWait(WebDriver, Duration, Duration) . |
Modifier and Type | Method and Description |
---|---|
protected java.lang.RuntimeException |
timeoutException(java.lang.String message,
java.lang.Throwable lastException)
Throws a timeout exception.
|
ignoreAll, ignoring, ignoring, pollingEvery, until, withMessage, withMessage, withTimeout
@Deprecated public WebDriverWait(org.openqa.selenium.WebDriver driver, long timeoutInSeconds)
WebDriverWait(WebDriver, Duration)
.driver
- The WebDriver instance to pass to the expected conditionstimeoutInSeconds
- The timeout in seconds when an expectation is calledFluentWait.ignoring(java.lang.Class)
public WebDriverWait(org.openqa.selenium.WebDriver driver, java.time.Duration timeout)
driver
- The WebDriver instance to pass to the expected conditionstimeout
- The timeout when an expectation is calledFluentWait.ignoring(java.lang.Class)
@Deprecated public WebDriverWait(org.openqa.selenium.WebDriver driver, long timeoutInSeconds, long sleepInMillis)
WebDriverWait(WebDriver, Duration, Duration)
.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.FluentWait.ignoring(java.lang.Class)
public WebDriverWait(org.openqa.selenium.WebDriver driver, java.time.Duration timeout, java.time.Duration sleep)
driver
- The WebDriver instance to pass to the expected conditionstimeout
- The timeout in seconds when an expectation is calledsleep
- The duration in milliseconds to sleep between polls.FluentWait.ignoring(java.lang.Class)
@Deprecated public WebDriverWait(org.openqa.selenium.WebDriver driver, java.time.Clock clock, Sleeper sleeper, long timeoutInSeconds, long sleepInMillis)
WebDriverWait(WebDriver, Duration, Duration,
Clock, Sleeper)
.driver
- the WebDriver instance to pass to the expected conditionsclock
- used when measuring the timeoutsleeper
- used to make the current thread go to sleeptimeoutInSeconds
- the timeout in seconds when an expectation is calledsleepInMillis
- the timeout in millis used whilst sleepingpublic WebDriverWait(org.openqa.selenium.WebDriver driver, java.time.Duration timeout, java.time.Duration sleep, java.time.Clock clock, Sleeper sleeper)
driver
- the WebDriver instance to pass to the expected conditionsclock
- used when measuring the timeoutsleeper
- used to make the current thread go to sleeptimeout
- the timeout when an expectation is calledsleep
- the timeout used whilst sleepingprotected java.lang.RuntimeException timeoutException(java.lang.String message, java.lang.Throwable lastException)
FluentWait
timeoutException
in class FluentWait<org.openqa.selenium.WebDriver>
message
- The timeout message.lastException
- The last exception to be thrown and subsequently suppressed while waiting
on a function.