Package io.fluentlenium.core.conditions
Class EachElementConditions
java.lang.Object
io.fluentlenium.core.conditions.AbstractFluentListConditions
io.fluentlenium.core.conditions.EachElementConditions
- All Implemented Interfaces:
Conditions<FluentWebElement>
,FluentConditions
,FluentListConditions
,ListConditionsElements
Conditions for list of elements, matching when each element matches.
-
Constructor Summary
ConstructorDescriptionEachElementConditions
(List<? extends FluentWebElement> elements) Creates a new element list conditions. -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<FluentDriver>
buildEachElementPredicate
(Predicate<FluentWebElement> predicate, boolean defaultValue) Build predicate for this condition.not()
Negates this condition object.boolean
verify
(Predicate<FluentWebElement> predicate, boolean defaultValue) Check that the given predicate is verified.Methods inherited from class io.fluentlenium.core.conditions.AbstractFluentListConditions
attribute, className, clickable, displayed, enabled, getActualElements, getElements, id, isNegation, name, present, rectangle, selected, setNegation, size, size, stale, tagName, text, textContent, value, verify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluentlenium.core.conditions.FluentConditions
attribute, id, name, tagName, text, textContent, value
-
Constructor Details
-
EachElementConditions
Creates a new element list conditions.- Parameters:
elements
- underlying elements
-
-
Method Details
-
not
Description copied from interface:FluentListConditions
Negates this condition object.- Returns:
- a new negated condition object
-
verify
Description copied from interface:FluentListConditions
Check that the given predicate is verified.- Parameters:
predicate
- predicate to checkdefaultValue
- default value if input is not present- Returns:
- true if the predicate is verified, false otherwise
-
buildEachElementPredicate
protected Predicate<FluentDriver> buildEachElementPredicate(Predicate<FluentWebElement> predicate, boolean defaultValue) Build predicate for this condition.- Parameters:
predicate
- predicatedefaultValue
- default value if elements list is empty.- Returns:
- predicate
-