Class ListSize
- java.lang.Object
-
- com.codeborne.selenide.CollectionCondition
-
- com.codeborne.selenide.collections.ListSize
-
- All Implemented Interfaces:
java.util.function.Predicate<java.util.List<org.openqa.selenium.WebElement>>
@ParametersAreNonnullByDefault public class ListSize extends CollectionCondition
-
-
Field Summary
Fields Modifier and Type Field Description protected intexpectedSize-
Fields inherited from class com.codeborne.selenide.CollectionCondition
empty, explanation
-
-
Constructor Summary
Constructors Constructor Description ListSize(int expectedSize)
-
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)booleantest(java.util.List<org.openqa.selenium.WebElement> elements)java.lang.StringtoString()-
Methods inherited from class com.codeborne.selenide.CollectionCondition
allMatch, anyMatch, because, exactTexts, exactTexts, exactTextsCaseSensitiveInAnyOrder, exactTextsCaseSensitiveInAnyOrder, itemWithText, noneMatch, size, sizeGreaterThan, sizeGreaterThanOrEqual, sizeLessThan, sizeLessThanOrEqual, sizeNotEqual, texts, texts, textsInAnyOrder, textsInAnyOrder
-
-
-
-
Method Detail
-
test
@CheckReturnValue public boolean test(java.util.List<org.openqa.selenium.WebElement> elements)
-
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
@CheckReturnValue public boolean applyNull()
- Specified by:
applyNullin classCollectionCondition
-
toString
@CheckReturnValue public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-