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 FluentListConditions
not()
Negates this condition object.boolean
present()
Check that the currently validated element of this list is present.AbstractIntegerConditions
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 org.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Method Detail
-
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
boolean verify(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:
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
-
-