Class SizeNotEqual
java.lang.Object
com.codeborne.selenide.CollectionCondition
com.codeborne.selenide.collections.SizeNotEqual
-
Field Summary
FieldsFields inherited from class com.codeborne.selenide.CollectionCondition
empty, explanation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapply(int size) voidfail(CollectionSource collection, CheckResult lastCheckResult, Exception cause, long timeoutMs) Every subclass should implement this method.booleantoString()Methods inherited from class com.codeborne.selenide.CollectionCondition
allMatch, anyMatch, attributes, attributes, because, check, containExactTextsCaseSensitive, containExactTextsCaseSensitive, exactTexts, exactTexts, exactTextsCaseSensitive, exactTextsCaseSensitive, exactTextsCaseSensitiveInAnyOrder, exactTextsCaseSensitiveInAnyOrder, itemWithText, noneMatch, size, sizeGreaterThan, sizeGreaterThanOrEqual, sizeLessThan, sizeLessThanOrEqual, sizeNotEqual, texts, texts, textsInAnyOrder, textsInAnyOrder
-
Field Details
-
expectedSize
protected final int expectedSize
-
-
Constructor Details
-
SizeNotEqual
public SizeNotEqual(int expectedSize)
-
-
Method Details
-
toString
-
apply
@CheckReturnValue protected boolean apply(int size) -
check
@Nonnull @CheckReturnValue public CheckResult check(Driver driver, List<org.openqa.selenium.WebElement> elements) - Overrides:
checkin classCollectionCondition
-
fail
public void fail(CollectionSource collection, CheckResult lastCheckResult, @Nullable Exception cause, long timeoutMs) Description copied from class:CollectionConditionEvery subclass should implement this method. We left here the default implementation only because of backward compatibility.- Specified by:
failin classCollectionCondition
-
missingElementSatisfiesCondition
public boolean missingElementSatisfiesCondition()- Specified by:
missingElementSatisfiesConditionin classCollectionCondition
-