Package io.fluentlenium.core.wait
Class BaseWaitConditions
java.lang.Object
io.fluentlenium.core.wait.BaseWaitConditions
- Direct Known Subclasses:
FluentWaitPageConditions
,FluentWaitWindowConditions
Common class for all wait conditions instances.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild the final message from default message.protected void
until
(FluentWait wait, Predicate<FluentControl> present, String message) Perform the wait.protected void
until
(FluentWait wait, Predicate<FluentControl> present, Supplier<String> messageSupplier) Perform the wait.protected <T extends Conditions<?>>
voiduntil
(FluentWait wait, T condition, T messageBuilder, Function<T, Boolean> conditionFunction) Perform the wait.
-
Constructor Details
-
BaseWaitConditions
public BaseWaitConditions()
-
-
Method Details
-
messageCustomizer
Build the final message from default message.- Returns:
- final message
-
until
Perform the wait.- Parameters:
wait
- fluent wait object.present
- predicate to wait for.message
- message to use.
-
until
protected void until(FluentWait wait, Predicate<FluentControl> present, Supplier<String> messageSupplier) Perform the wait.- Parameters:
wait
- fluent wait object.present
- predicate to wait for.messageSupplier
- default message to use.
-
until
protected <T extends Conditions<?>> void until(FluentWait wait, T condition, T messageBuilder, Function<T, Boolean> conditionFunction) Perform the wait.- Type Parameters:
T
- type of the condition.- Parameters:
wait
- fluent wait objectcondition
- condition object to wait formessageBuilder
- message builder matching the condition objectconditionFunction
- condition fonction
-