Package org.fluentlenium.core.conditions
Interface FluentListConditions
-
- All Superinterfaces:
Conditions<FluentWebElement>,FluentConditions
- All Known Implementing Classes:
AbstractFluentListConditions,AtLeastOneElementConditions,EachElementConditions
public interface FluentListConditions extends FluentConditions
Conditions API for list of elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FluentListConditionsnot()Negates this condition object.booleanpresent()Check that the currently validated element of this list is present.AbstractIntegerConditionssize()Check that this element list has the given size.booleansize(int size)Check that this element list has the given size.booleanverify(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)Check that the given predicate is verified.-
Methods inherited from interface org.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Method Detail
-
not
FluentListConditions not()
Negates this condition object.- Specified by:
notin interfaceConditions<FluentWebElement>- Specified by:
notin interfaceFluentConditions- Returns:
- a new negated condition object
-
verify
boolean verify(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)
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
-
present
boolean present()
Check that the currently validated element of this list is present.- Specified by:
presentin interfaceFluentConditions- Returns:
- true if the element is present, false otherwise
-
size
boolean size(int size)
Check that this element list has the given size.- Parameters:
size- size of the list- Returns:
- true if it has the given size, false otherwise
-
size
AbstractIntegerConditions size()
Check that this element list has the given size.- Returns:
- an object to configure advanced conditions on size
-
-