public interface WebDriverWait<FLUENT> extends FluentWait<org.openqa.selenium.WebDriver,FLUENT>
Modifier and Type | Method and Description |
---|---|
<ACTION> FLUENT |
commit(ACTION action)
Closes the fluent definition and indicates that it can be applied.
|
<K extends Throwable> |
ignoreAll(Collection<Class<? extends K>> types)
Configures this instance to ignore specific types of exceptions while
waiting for a condition.
|
<K extends Throwable> |
ignoring(Class<? extends Throwable> exceptionType) |
<K extends Throwable> |
ignoring(Class<? extends Throwable> firstType,
Class<? extends Throwable> secondType) |
FluentWait<org.openqa.selenium.WebDriver,FLUENT> |
pollingEvery(long duration,
TimeUnit unit)
Sets how often the condition should be evaluated.
|
FluentBuilder<FLUENT> |
until()
Returns the fluent condition builder.
|
<T> T |
until(com.google.common.base.Function<? super org.openqa.selenium.WebDriver,T> isTrue) |
void |
until(com.google.common.base.Predicate<org.openqa.selenium.WebDriver> isTrue)
Repeatedly applies this instance's input value to the given predicate until the timeout expires
or the predicate evaluates to true.
|
FluentBuilder<FLUENT> |
until(String failMessage)
Returns the fluent condition builder.
|
FluentWait<org.openqa.selenium.WebDriver,FLUENT> |
withMessage(String message)
Sets the message to be displayed when time expires.
|
FluentWait<org.openqa.selenium.WebDriver,FLUENT> |
withTimeout(long duration,
TimeUnit unit)
Sets how long to wait for the evaluated condition to be true.
|
FluentWait<org.openqa.selenium.WebDriver,FLUENT> withMessage(String message)
FluentWait
withMessage
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
message
- to be appended to default.FluentWait<org.openqa.selenium.WebDriver,FLUENT> withTimeout(long duration, TimeUnit unit)
FluentWait
withTimeout
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
duration
- The timeout duration.unit
- The unit of time.FluentWait<org.openqa.selenium.WebDriver,FLUENT> pollingEvery(long duration, TimeUnit unit)
FluentWait
In reality, the interval may be greater as the cost of actually evaluating a condition function is not factored in. The default polling interval is 500ms.
pollingEvery
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
duration
- The timeout duration.unit
- The unit of time.<K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoreAll(Collection<Class<? extends K>> types)
FluentWait
ignoreAll
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
types
- The types of exceptions to ignore.<K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoring(Class<? extends Throwable> exceptionType)
ignoring
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
FluentWait.ignoreAll(Collection)
<K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType)
ignoring
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
FluentWait.ignoreAll(Collection)
void until(com.google.common.base.Predicate<org.openqa.selenium.WebDriver> isTrue)
FluentWait
until
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
isTrue
- The predicate to wait on.FluentBuilder<FLUENT> until()
FluentWait
FluentBase.commit(java.lang.Object)
which calls FluentWait.until(com.google.common.base.Predicate)
.until
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
FluentBuilder<FLUENT> until(String failMessage)
FluentWait
FluentBase.commit(java.lang.Object)
which calls FluentWait.until(com.google.common.base.Predicate)
.until
in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>
failMessage
- message used when the waiting fails<T> T until(com.google.common.base.Function<? super org.openqa.selenium.WebDriver,T> isTrue)
until
in interface org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver>
<ACTION> FLUENT commit(ACTION action)
FluentBase
commit
in interface FluentBase<FLUENT>
Copyright © 2016 JBoss by Red Hat. All rights reserved.