public class ElementsCollection extends java.util.AbstractList<SelenideElement>
| Constructor and Description |
|---|
ElementsCollection(WebElementsCollection collection) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
elementsToString(java.util.Collection<org.openqa.selenium.WebElement> elements) |
ElementsCollection |
exclude(Condition condition) |
ElementsCollection |
excludeWith(Condition condition) |
ElementsCollection |
filter(Condition condition) |
ElementsCollection |
filterBy(Condition condition) |
SelenideElement |
find(Condition condition) |
SelenideElement |
findBy(Condition condition) |
SelenideElement |
first() |
SelenideElement |
get(int index) |
java.lang.String[] |
getTexts() |
static java.lang.String[] |
getTexts(java.util.Collection<org.openqa.selenium.WebElement> elements)
Fail-safe method for retrieving texts of given elements.
|
java.util.Iterator<SelenideElement> |
iterator() |
SelenideElement |
last() |
java.util.ListIterator<SelenideElement> |
listIterator(int index) |
protected ElementsCollection |
should(java.lang.String prefix,
CollectionCondition... conditions) |
ElementsCollection |
shouldBe(CollectionCondition... conditions)
$$(".error").shouldBe(empty)
|
ElementsCollection |
shouldHave(CollectionCondition... conditions)
$$(".error").shouldHave(size(3))
$$(".error").shouldHave(texts("Error1", "Error2"))
|
ElementsCollection |
shouldHaveSize(int expectedSize) |
int |
size() |
java.lang.String |
toString() |
protected void |
waitUntil(CollectionCondition condition,
long timeoutMs) |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic ElementsCollection(WebElementsCollection collection)
public ElementsCollection shouldHaveSize(int expectedSize)
public ElementsCollection shouldBe(CollectionCondition... conditions)
public ElementsCollection shouldHave(CollectionCondition... conditions)
protected ElementsCollection should(java.lang.String prefix, CollectionCondition... conditions)
protected void waitUntil(CollectionCondition condition, long timeoutMs)
public ElementsCollection filter(Condition condition)
public ElementsCollection filterBy(Condition condition)
public ElementsCollection exclude(Condition condition)
public ElementsCollection excludeWith(Condition condition)
public SelenideElement find(Condition condition)
public SelenideElement findBy(Condition condition)
public java.lang.String[] getTexts()
public static java.lang.String[] getTexts(java.util.Collection<org.openqa.selenium.WebElement> elements)
elements - Any collection of WebElementspublic static java.lang.String elementsToString(java.util.Collection<org.openqa.selenium.WebElement> elements)
public SelenideElement get(int index)
get in interface java.util.List<SelenideElement>get in class java.util.AbstractList<SelenideElement>public SelenideElement first()
public SelenideElement last()
public int size()
size in interface java.util.Collection<SelenideElement>size in interface java.util.List<SelenideElement>size in class java.util.AbstractCollection<SelenideElement>public java.util.Iterator<SelenideElement> iterator()
iterator in interface java.lang.Iterable<SelenideElement>iterator in interface java.util.Collection<SelenideElement>iterator in interface java.util.List<SelenideElement>iterator in class java.util.AbstractList<SelenideElement>public java.util.ListIterator<SelenideElement> listIterator(int index)
listIterator in interface java.util.List<SelenideElement>listIterator in class java.util.AbstractList<SelenideElement>public java.lang.String toString()
toString in class java.util.AbstractCollection<SelenideElement>