Class WaitConditionProxy
java.lang.Object
io.fluentlenium.core.conditions.wait.WaitConditionProxy
Provides proxy implementations of conditions that performs wait from those
conditions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Conditions<?>>
Ccustom
(Class<C> conditionClass, FluentWait wait, String context, Supplier<C> conditionsSupplier) Build a wait proxy.static FluentListConditions
each
(FluentWait wait, String context, Supplier<? extends List<? extends FluentWebElement>> elementsSupplier) Build a wait proxy.static FluentConditions
element
(FluentWait wait, String context, Supplier<? extends FluentWebElement> elementSupplier) Build a wait proxy.static FluentListConditions
list
(FluentWait wait, String context, Supplier<? extends FluentListConditions> conditionsSupplier) Build a wait proxy.static FluentListConditions
one
(FluentWait wait, String context, Supplier<? extends List<? extends FluentWebElement>> elementsSupplier) Build a wait proxy.
-
Method Details
-
each
public static FluentListConditions each(FluentWait wait, String context, Supplier<? extends List<? extends FluentWebElement>> elementsSupplier) Build a wait proxy.- Parameters:
wait
- Fluent waitcontext
- Message contextelementsSupplier
- Supplier for elements to wait.- Returns:
- a proxy generating message from annotations.
-
one
public static FluentListConditions one(FluentWait wait, String context, Supplier<? extends List<? extends FluentWebElement>> elementsSupplier) Build a wait proxy.- Parameters:
wait
- Fluent waitcontext
- Message contextelementsSupplier
- Supplier for elements to wait.- Returns:
- a proxy generating message from annotations.
-
list
public static FluentListConditions list(FluentWait wait, String context, Supplier<? extends FluentListConditions> conditionsSupplier) Build a wait proxy.- Parameters:
wait
- Fluent waitcontext
- Message contextconditionsSupplier
- Supplier for elements to wait.- Returns:
- a proxy generating message from annotations.
-
element
public static FluentConditions element(FluentWait wait, String context, Supplier<? extends FluentWebElement> elementSupplier) Build a wait proxy.- Parameters:
wait
- Fluent waitcontext
- Message contextelementSupplier
- Supplier for element to wait.- Returns:
- a proxy generating message from annotations.
-
custom
public static <C extends Conditions<?>> C custom(Class<C> conditionClass, FluentWait wait, String context, Supplier<C> conditionsSupplier) Build a wait proxy.- Type Parameters:
C
- condition type- Parameters:
conditionClass
- condition classwait
- Fluent waitcontext
- Message contextconditionsSupplier
- Supplier for elements to wait.- Returns:
- a proxy generating message from annotations.
-