public abstract class CollectionCondition
extends java.lang.Object
implements com.google.common.base.Predicate<java.util.List<org.openqa.selenium.WebElement>>
| Modifier and Type | Field and Description |
|---|---|
static CollectionCondition |
empty |
| Constructor and Description |
|---|
CollectionCondition() |
| Modifier and Type | Method and Description |
|---|---|
static CollectionCondition |
exactTexts(java.lang.String... expectedTexts)
Checks that given collection has given texts (each collection element EQUALS TO corresponding text)
|
abstract void |
fail(WebElementsCollection collection,
java.util.List<org.openqa.selenium.WebElement> elements,
java.lang.Exception lastError,
long timeoutMs) |
static CollectionCondition |
size(int expectedSize) |
static CollectionCondition |
texts(java.lang.String... expectedTexts)
Checks that given collection has given texts (each collection element CONTAINS corresponding text)
|
public static final CollectionCondition empty
public abstract void fail(WebElementsCollection collection, java.util.List<org.openqa.selenium.WebElement> elements, java.lang.Exception lastError, long timeoutMs)
public static CollectionCondition size(int expectedSize)
public static CollectionCondition texts(java.lang.String... expectedTexts)
NB! Ignores multiple whitespaces between words
public static CollectionCondition exactTexts(java.lang.String... expectedTexts)
NB! Ignores multiple whitespaces between words