Class SizeNotEqual
java.lang.Object
com.codeborne.selenide.WebElementsCondition
com.codeborne.selenide.collections.SizeNotEqual
-
Field Summary
Fields inherited from class com.codeborne.selenide.WebElementsCondition
explanation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
apply
(int size) void
fail
(CollectionSource collection, CheckResult lastCheckResult, Exception cause, long timeoutMs) Override this method if you want to customize error class or descriptionboolean
toString()
Methods inherited from class com.codeborne.selenide.WebElementsCondition
because, check, errorMessage, expectedValue, or
-
Field Details
-
expectedSize
protected final int expectedSize
-
-
Constructor Details
-
SizeNotEqual
public SizeNotEqual(int expectedSize)
-
-
Method Details
-
toString
- Specified by:
toString
in classWebElementsCondition
-
apply
@CheckReturnValue protected boolean apply(int size) -
check
@Nonnull @CheckReturnValue public CheckResult check(Driver driver, List<org.openqa.selenium.WebElement> elements) - Overrides:
check
in classWebElementsCondition
-
fail
public void fail(CollectionSource collection, CheckResult lastCheckResult, @Nullable Exception cause, long timeoutMs) Description copied from class:WebElementsCondition
Override this method if you want to customize error class or description- Overrides:
fail
in classWebElementsCondition
-
missingElementsSatisfyCondition
public boolean missingElementsSatisfyCondition()- Overrides:
missingElementsSatisfyCondition
in classWebElementsCondition
-