Class WaitConditionProxy
- java.lang.Object
-
- org.fluentlenium.core.conditions.wait.WaitConditionProxy
-
public final class WaitConditionProxy extends java.lang.ObjectProvides 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(java.lang.Class<C> conditionClass, FluentWait wait, java.lang.String context, java.util.function.Supplier<C> conditionsSupplier)Build a wait proxy.static FluentListConditionseach(FluentWait wait, java.lang.String context, java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elementsSupplier)Build a wait proxy.static FluentConditionselement(FluentWait wait, java.lang.String context, java.util.function.Supplier<? extends FluentWebElement> elementSupplier)Build a wait proxy.static FluentListConditionslist(FluentWait wait, java.lang.String context, java.util.function.Supplier<? extends FluentListConditions> conditionsSupplier)Build a wait proxy.static FluentListConditionsone(FluentWait wait, java.lang.String context, java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elementsSupplier)Build a wait proxy.
-
-
-
Method Detail
-
each
public static FluentListConditions each(FluentWait wait, java.lang.String context, java.util.function.Supplier<? extends java.util.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, java.lang.String context, java.util.function.Supplier<? extends java.util.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, java.lang.String context, java.util.function.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, java.lang.String context, java.util.function.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(java.lang.Class<C> conditionClass, FluentWait wait, java.lang.String context, java.util.function.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.
-
-