public class WebDriverWait<FLUENT> extends Object implements FluentWait<org.openqa.selenium.WebDriver,FLUENT>
| Modifier | Constructor and Description |
|---|---|
|
WebDriverWait(FLUENT fluent,
org.openqa.selenium.WebDriver driver,
long timeOutInSeconds) |
protected |
WebDriverWait(org.openqa.selenium.support.ui.WebDriverWait wait,
FLUENT fluent) |
| Modifier and Type | Method and Description |
|---|---|
<ACTION> FLUENT |
commit(ACTION action) |
<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.
|
protected WebDriverWait(org.openqa.selenium.support.ui.WebDriverWait wait,
FLUENT fluent)
public WebDriverWait(FLUENT fluent, org.openqa.selenium.WebDriver driver, long timeOutInSeconds)
public FluentWait<org.openqa.selenium.WebDriver,FLUENT> withMessage(String message)
FluentWaitwithMessage in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>message - to be appended to default.public FluentWait<org.openqa.selenium.WebDriver,FLUENT> withTimeout(long duration, TimeUnit unit)
FluentWait#FIVE_HUNDRED_MILLIS.withTimeout in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>duration - The timeout duration.unit - The unit of time.public 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 #FIVE_HUNDRED_MILLIS.
pollingEvery in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>duration - The timeout duration.unit - The unit of time.public <K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoreAll(Collection<Class<? extends K>> types)
FluentWaitignoreAll in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>types - The types of exceptions to ignore.public <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)public <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)public void until(com.google.common.base.Predicate<org.openqa.selenium.WebDriver> isTrue)
FluentWaituntil in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>isTrue - The predicate to wait on.public FluentBuilder<FLUENT> until()
FluentWaitFluentBase.commit(java.lang.Object)
which calls FluentWait.until(com.google.common.base.Predicate).until in interface FluentWait<org.openqa.selenium.WebDriver,FLUENT>public FluentBuilder<FLUENT> until(String failMessage)
FluentWaitFluentBase.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 failspublic <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>public <ACTION> FLUENT commit(ACTION action)
commit in interface FluentBase<FLUENT>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.