Interface WebDriverWait<FLUENT>
- All Superinterfaces:
FluentBase<FLUENT>,FluentWait<org.openqa.selenium.WebDriver,,FLUENT> org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver>
- Author:
- Jan Papousek
-
Method Summary
Modifier and TypeMethodDescription<ACTION> FLUENTcommit(ACTION action) Closes the fluent definition and indicates that it can be applied.<K extends Throwable>
FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoreAll(Collection<Class<? extends K>> types) Configures this instance to ignore specific types of exceptions while waiting for a condition.<K extends Throwable>
FluentWait<org.openqa.selenium.WebDriver,FLUENT> <K extends Throwable>
FluentWait<org.openqa.selenium.WebDriver,FLUENT> FluentWait<org.openqa.selenium.WebDriver,FLUENT> pollingEvery(long duration, TimeUnit unit) Sets how often the condition should be evaluated.FluentWait<org.openqa.selenium.WebDriver,FLUENT> pollingEvery(Duration duration) Sets how often the condition should be evaluated.until()Returns the fluent condition builder.Returns the fluent condition builder.<T> TFluentWait<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> withTimeout(Duration duration) Sets how long to wait for the evaluated condition to be true.
-
Method Details
-
withMessage
Description copied from interface:FluentWaitSets the message to be displayed when time expires.- Specified by:
withMessagein interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - Parameters:
message- to be appended to default.- Returns:
- A self reference.
-
withTimeout
Description copied from interface:FluentWaitSets how long to wait for the evaluated condition to be true. The default timeout is 500ms.- Specified by:
withTimeoutin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - Parameters:
duration- The timeout duration.unit- The unit of time.- Returns:
- A self reference.
-
withTimeout
Description copied from interface:FluentWaitSets how long to wait for the evaluated condition to be true. The default timeout is 500ms. It is an alternative forFluentWait.withTimeout(long, TimeUnit)- Specified by:
withTimeoutin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT>
-
pollingEvery
Description copied from interface:FluentWaitSets how often the condition should be evaluated.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.
- Specified by:
pollingEveryin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - Parameters:
duration- The timeout duration.unit- The unit of time.- Returns:
- A self reference.
-
pollingEvery
Description copied from interface:FluentWaitSets how often the condition should be evaluated. It is an alternative forFluentWait.pollingEvery(long, TimeUnit)- Specified by:
pollingEveryin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT>
-
ignoreAll
<K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoreAll(Collection<Class<? extends K>> types) Description copied from interface:FluentWaitConfigures this instance to ignore specific types of exceptions while waiting for a condition. Any exceptions not whitelisted will be allowed to propagate, terminating the wait.- Specified by:
ignoreAllin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - Parameters:
types- The types of exceptions to ignore.- Returns:
- A self reference.
-
ignoring
<K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoring(Class<? extends Throwable> exceptionType) - Specified by:
ignoringin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - See Also:
-
ignoring
<K extends Throwable> FluentWait<org.openqa.selenium.WebDriver,FLUENT> ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType) - Specified by:
ignoringin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - See Also:
-
until
FluentBuilder<FLUENT> until()Description copied from interface:FluentWaitReturns the fluent condition builder. The builder automatically callsFluentBase.commit(java.lang.Object)which calls#until(com.google.common.base.Predicate).- Specified by:
untilin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT>
-
until
Description copied from interface:FluentWaitReturns the fluent condition builder. The builder automatically callsFluentBase.commit(java.lang.Object)which calls#until(com.google.common.base.Predicate).- Specified by:
untilin interfaceFluentWait<org.openqa.selenium.WebDriver,FLUENT> - Parameters:
failMessage- message used when the waiting fails
-
until
- Specified by:
untilin interfaceorg.openqa.selenium.support.ui.Wait<FLUENT>
-
commit
Description copied from interface:FluentBaseCloses the fluent definition and indicates that it can be applied.- Specified by:
commitin interfaceFluentBase<FLUENT>- Returns:
- the committed fluent definition
-