Class WaitConditionProxy
- java.lang.Object
-
- org.fluentlenium.core.conditions.wait.WaitConditionProxy
-
public final class WaitConditionProxy extends Object
Provides proxy implementations of conditions that performs wait from those conditions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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 Detail
-
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.
-
-