Class PredicateCollectionCondition
- java.lang.Object
-
- com.codeborne.selenide.CollectionCondition
-
- com.codeborne.selenide.collections.PredicateCollectionCondition
-
- All Implemented Interfaces:
java.util.function.Predicate<java.util.List<org.openqa.selenium.WebElement>>
@ParametersAreNonnullByDefault public abstract class PredicateCollectionCondition extends CollectionCondition
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.lang.Stringmatcherprotected java.util.function.Predicate<org.openqa.selenium.WebElement>predicate-
Fields inherited from class com.codeborne.selenide.CollectionCondition
empty, explanation
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPredicateCollectionCondition(java.lang.String matcher, java.lang.String description, java.util.function.Predicate<org.openqa.selenium.WebElement> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyNull()voidfail(WebElementsCollection collection, java.util.List<org.openqa.selenium.WebElement> elements, java.lang.Exception lastError, long timeoutMs)java.lang.StringtoString()-
Methods inherited from class com.codeborne.selenide.CollectionCondition
allMatch, anyMatch, because, exactTexts, exactTexts, noneMatch, size, sizeGreaterThan, sizeGreaterThanOrEqual, sizeLessThan, sizeLessThanOrEqual, sizeNotEqual, texts, texts, textsInAnyOrder, textsInAnyOrder
-
-
-
-
Method Detail
-
fail
public void fail(WebElementsCollection collection, @Nullable java.util.List<org.openqa.selenium.WebElement> elements, @Nullable java.lang.Exception lastError, long timeoutMs)
- Specified by:
failin classCollectionCondition
-
applyNull
public boolean applyNull()
- Specified by:
applyNullin classCollectionCondition
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-