Package io.fluentlenium.core.conditions
Interface FluentListConditions
- All Superinterfaces:
Conditions<FluentWebElement>
,FluentConditions
- All Known Implementing Classes:
AbstractFluentListConditions
,AtLeastOneElementConditions
,EachElementConditions
Conditions API for list of elements.
-
Method Summary
Modifier and TypeMethodDescriptionnot()
Negates this condition object.boolean
present()
Check that the currently validated element of this list is present.size()
Check that this element list has the given size.boolean
size
(int size) Check that this element list has the given size.boolean
verify
(Predicate<FluentWebElement> predicate, boolean defaultValue) Check that the given predicate is verified.Methods inherited from interface io.fluentlenium.core.conditions.Conditions
verify
-
Method Details
-
not
FluentListConditions not()Negates this condition object.- Specified by:
not
in interfaceConditions<FluentWebElement>
- Specified by:
not
in interfaceFluentConditions
- Returns:
- a new negated condition object
-
verify
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:
present
in 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
-