public class AtLeastOneElementConditions extends AbstractFluentListConditions
| Constructor and Description |
|---|
AtLeastOneElementConditions(java.util.List<? extends FluentWebElement> elements)
Creates a new condition.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.function.Predicate<FluentDriver> |
buildAtLeastOnePredicate(java.util.function.Predicate<FluentWebElement> predicate,
boolean defaultValue)
Build predicate for this condition.
|
AtLeastOneElementConditions |
not()
Negates this condition object.
|
boolean |
verify(java.util.function.Predicate<FluentWebElement> predicate,
boolean defaultValue)
Check that the given predicate is verified.
|
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, verifypublic AtLeastOneElementConditions(java.util.List<? extends FluentWebElement> elements)
elements - underlying elementspublic AtLeastOneElementConditions not()
FluentListConditionspublic boolean verify(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)
FluentListConditionspredicate - predicate to checkdefaultValue - default value if input is not presentprotected java.util.function.Predicate<FluentDriver> buildAtLeastOnePredicate(java.util.function.Predicate<FluentWebElement> predicate, boolean defaultValue)
predicate - predicatedefaultValue - default value if elements list is empty.Copyright © 2018 FluentLenium. All Rights Reserved.