Package org.fluentlenium.core.wait
Interface FluentWaitFunctional<F>
-
- Type Parameters:
F- the argument to pass to function called
- All Superinterfaces:
org.openqa.selenium.support.ui.Wait<F>
- All Known Implementing Classes:
FluentWait,FluentWaitElement,FluentWaitElementList
public interface FluentWaitFunctional<F> extends org.openqa.selenium.support.ui.Wait<F>Functional API of fluent wait.- See Also:
until(Function)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tuntil(java.util.function.Function<? super F,T> function)Wait until the function returns a non-null and non-false object.voiduntil(java.util.function.Supplier<java.lang.Boolean> booleanSupplier)Wait until the supplier returns true.voiduntilPredicate(java.util.function.Predicate<FluentControl> predicate)Wait until the predicate returns true.
-
-
-
Method Detail
-
untilPredicate
void untilPredicate(java.util.function.Predicate<FluentControl> predicate)
Wait until the predicate returns true.- Parameters:
predicate- predicate condition to wait for
-
until
void until(java.util.function.Supplier<java.lang.Boolean> booleanSupplier)
Wait until the supplier returns true.- Parameters:
booleanSupplier- supplier condition to wait for.
-
until
<T> T until(java.util.function.Function<? super F,T> function)
Wait until the function returns a non-null and non-false object.- Specified by:
untilin interfaceorg.openqa.selenium.support.ui.Wait<F>- Type Parameters:
T- type of returned object- Parameters:
function- function returning a non-null and non-false object when condition is verified.- Returns:
- object returned by function
-
-