public class ListSize extends CollectionCondition
| Modifier and Type | Field and Description |
|---|---|
protected int |
expectedSize |
empty| Constructor and Description |
|---|
ListSize(int expectedSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(java.util.List<org.openqa.selenium.WebElement> elements) |
void |
fail(WebElementsCollection collection,
java.util.List<org.openqa.selenium.WebElement> elements,
java.lang.Exception lastError,
long timeoutMs) |
java.lang.String |
toString() |
exactTexts, exactTexts, size, sizeGreaterThan, sizeGreaterThanOrEqual, sizeLessThan, sizeLessThanOrEqual, sizeNotEqual, texts, textspublic boolean apply(java.util.List<org.openqa.selenium.WebElement> elements)
public void fail(WebElementsCollection collection, java.util.List<org.openqa.selenium.WebElement> elements, java.lang.Exception lastError, long timeoutMs)
fail in class CollectionConditionpublic java.lang.String toString()
toString in class java.lang.Object