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 |
protected java.lang.String |
explanation |
| Constructor and Description |
|---|
CollectionCondition() |
| Modifier and Type | Method and Description |
|---|---|
CollectionCondition |
because(java.lang.String explanation)
Should be used for explaining the reason of condition
|
static CollectionCondition |
exactTexts(java.util.List<java.lang.String> expectedTexts)
Checks that given collection has given texts (each collection element EQUALS TO corresponding text)
|
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)
Checks that collection has the given size
|
static CollectionCondition |
sizeGreaterThan(int expectedSize) |
static CollectionCondition |
sizeGreaterThanOrEqual(int expectedSize) |
static CollectionCondition |
sizeLessThan(int expectedSize) |
static CollectionCondition |
sizeLessThanOrEqual(int size) |
static CollectionCondition |
sizeNotEqual(int expectedSize) |
static CollectionCondition |
texts(java.util.List<java.lang.String> expectedTexts)
Checks that given collection has given texts (each collection element CONTAINS corresponding text)
|
static CollectionCondition |
texts(java.lang.String... expectedTexts)
Checks that given collection has given texts (each collection element CONTAINS corresponding text)
|
static CollectionCondition |
textsInAnyOrder(java.util.List<java.lang.String> expectedTexts)
Checks that given collection has given texts in any order (each collection element CONTAINS corresponding text)
|
static CollectionCondition |
textsInAnyOrder(java.lang.String... expectedTexts)
Checks that given collection has given texts in any order (each collection element CONTAINS corresponding text)
|
protected java.lang.String explanation
public static 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 sizeGreaterThan(int expectedSize)
public static CollectionCondition sizeGreaterThanOrEqual(int expectedSize)
public static CollectionCondition sizeLessThan(int expectedSize)
public static CollectionCondition sizeLessThanOrEqual(int size)
public static CollectionCondition sizeNotEqual(int expectedSize)
public static CollectionCondition texts(java.lang.String... expectedTexts)
NB! Ignores multiple whitespaces between words
public static CollectionCondition texts(java.util.List<java.lang.String> expectedTexts)
NB! Ignores multiple whitespaces between words
public static CollectionCondition textsInAnyOrder(java.lang.String... expectedTexts)
NB! Ignores multiple whitespaces between words
public static CollectionCondition textsInAnyOrder(java.util.List<java.lang.String> expectedTexts)
NB! Ignores multiple whitespaces between words
public static CollectionCondition exactTexts(java.lang.String... expectedTexts)
NB! Ignores multiple whitespaces between words
public static CollectionCondition exactTexts(java.util.List<java.lang.String> expectedTexts)
NB! Ignores multiple whitespaces between words
public CollectionCondition because(java.lang.String explanation)