Package org.fluentlenium.core.conditions
Class EachElementConditions
- java.lang.Object
-
- org.fluentlenium.core.conditions.AbstractFluentListConditions
-
- org.fluentlenium.core.conditions.EachElementConditions
-
- All Implemented Interfaces:
Conditions<FluentWebElement>,FluentConditions,FluentListConditions,ListConditionsElements
public class EachElementConditions extends AbstractFluentListConditions
Conditions for list of elements, matching when each element matches.
-
-
Constructor Summary
Constructors Constructor Description EachElementConditions(java.util.List<? extends FluentWebElement> elements)Creates a new element list conditions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.function.Predicate<FluentDriver>buildEachElementPredicate(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)Build predicate for this condition.EachElementConditionsnot()Negates this condition object.booleanverify(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)Check that the given predicate is verified.-
Methods inherited from class org.fluentlenium.core.conditions.AbstractFluentListConditions
attribute, attribute, className, clickable, displayed, enabled, getActualElements, getElements, id, id, isNegation, name, name, present, rectangle, selected, setNegation, size, size, stale, tagName, tagName, text, text, textContent, textContent, value, value, verify
-
-
-
-
Constructor Detail
-
EachElementConditions
public EachElementConditions(java.util.List<? extends FluentWebElement> elements)
Creates a new element list conditions.- Parameters:
elements- underlying elements
-
-
Method Detail
-
not
public EachElementConditions not()
Description copied from interface:FluentListConditionsNegates this condition object.- Returns:
- a new negated condition object
-
verify
public boolean verify(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)
Description copied from interface:FluentListConditionsCheck 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 java.util.function.Predicate<FluentDriver> buildEachElementPredicate(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)
Build predicate for this condition.- Parameters:
predicate- predicatedefaultValue- default value if elements list is empty.- Returns:
- predicate
-
-