Class ExactTexts
- java.lang.Object
-
- com.codeborne.selenide.CollectionCondition
-
- com.codeborne.selenide.collections.ExactTexts
-
- All Implemented Interfaces:
java.util.function.Predicate<java.util.List<org.openqa.selenium.WebElement>>
- Direct Known Subclasses:
ExactTextsCaseSensitiveInAnyOrder
,Texts
,TextsInAnyOrder
@ParametersAreNonnullByDefault public class ExactTexts extends CollectionCondition
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
expectedTexts
-
Fields inherited from class com.codeborne.selenide.CollectionCondition
empty, explanation
-
-
Constructor Summary
Constructors Constructor Description ExactTexts(java.lang.String... expectedTexts)
ExactTexts(java.util.List<java.lang.String> expectedTexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyNull()
void
fail(WebElementsCollection collection, java.util.List<org.openqa.selenium.WebElement> elements, java.lang.Exception lastError, long timeoutMs)
boolean
test(java.util.List<org.openqa.selenium.WebElement> elements)
java.lang.String
toString()
-
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:
fail
in classCollectionCondition
-
applyNull
public boolean applyNull()
- Specified by:
applyNull
in classCollectionCondition
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-