ARG
- The input type for each condition used with this instance.FLUENT
- The type of value returned in the end of fluent chain.public interface FluentWait<ARG,FLUENT> extends org.openqa.selenium.support.ui.Wait<ARG>, FluentBase<FLUENT>
FluentWait
. It's here because of a
fluent API in Graphene.Modifier and Type | Method and Description |
---|---|
<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<ARG,FLUENT> |
pollingEvery(long duration,
TimeUnit unit)
Sets how often the condition should be evaluated.
|
FluentBuilder<FLUENT> |
until()
Returns the fluent condition builder.
|
void |
until(com.google.common.base.Predicate<ARG> 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<ARG,FLUENT> |
withMessage(String message)
Sets the message to be displayed when time expires.
|
FluentWait<ARG,FLUENT> |
withTimeout(long duration,
TimeUnit unit)
Sets how long to wait for the evaluated condition to be true.
|
commit
FluentWait<ARG,FLUENT> withMessage(String message)
message
- to be appended to default.FluentWait<ARG,FLUENT> withTimeout(long duration, TimeUnit unit)
duration
- The timeout duration.unit
- The unit of time.FluentWait<ARG,FLUENT> pollingEvery(long duration, TimeUnit unit)
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.
duration
- The timeout duration.unit
- The unit of time.<K extends Throwable> FluentWait<ARG,FLUENT> ignoreAll(Collection<Class<? extends K>> types)
types
- The types of exceptions to ignore.<K extends Throwable> FluentWait<ARG,FLUENT> ignoring(Class<? extends Throwable> exceptionType)
ignoreAll(Collection)
<K extends Throwable> FluentWait<ARG,FLUENT> ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType)
ignoreAll(Collection)
void until(com.google.common.base.Predicate<ARG> isTrue)
isTrue
- The predicate to wait on.org.openqa.selenium.TimeoutException
- If the timeout expires.FluentBuilder<FLUENT> until()
FluentBase.commit(java.lang.Object)
which calls until(com.google.common.base.Predicate)
.FluentBuilder<FLUENT> until(String failMessage)
FluentBase.commit(java.lang.Object)
which calls until(com.google.common.base.Predicate)
.failMessage
- message used when the waiting failsCopyright © 2016 JBoss by Red Hat. All rights reserved.