public class UiElementCollection extends java.util.AbstractList<UiElement>
UiElement and provides a new functionality.
$$(".errorMessage").first()shouldBe(visible, enabled);$$("td").shouldHaveSize(5);$$(".edit").getTexts();List| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
elementsToString(java.util.List<? extends WebElement> elements)
Outputs string presentation of the element's collection
|
UiElementCollection |
exclude(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
Filters elements excluding those which met the given condition
|
UiElementCollection |
excludeWith(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
Filters elements excluding those which met the given condition
|
UiElementCollection |
filter(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
Filters collection elements based on the given condition
|
UiElementCollection |
filterBy(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
Filters collection elements based on the given condition
|
UiElement |
find(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
Find the first element which met the given condition
|
UiElement |
findBy(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
Find the first element which met the given condition
|
UiElement |
first() |
UiElement |
get(int index) |
java.lang.String[] |
getTexts()
Gets all the texts in elements collection
|
static java.lang.String[] |
getTexts(java.util.Collection<? extends WebElement> elements)
Fail-safe method for retrieving texts of given elements.
|
java.util.Iterator<UiElement> |
iterator() |
UiElement |
last() |
java.util.ListIterator<UiElement> |
listIterator() |
java.util.ListIterator<UiElement> |
listIterator(int index) |
UiElementCollection |
shouldBe(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition... conditions)
$$(".error").shouldBe(empty)
|
UiElementCollection |
shouldHave(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition... conditions)
$$(".error").shouldHave(size(3))
|
UiElementCollection |
shouldHaveSize(int expectedSize)
Checks is the collection is of given size
|
int |
size() |
java.lang.String |
toString() |
UiElementCollection |
waitUntil(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition)
Wait until given collection meets given conditions.
|
UiElementCollection |
waitUntil(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition,
long timeoutMilliseconds)
Wait until given collection meets given conditions.
|
UiElementCollection |
waitUntil(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition,
long timeoutMilliseconds,
long pollingIntervalMilliseconds)
Wait until given collection meets given conditions.
|
UiElementCollection |
waitWhile(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition)
Wait while given collection meets given conditions.
|
UiElementCollection |
waitWhile(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition,
long timeoutMilliseconds)
Wait while given collection meets given conditions.
|
UiElementCollection |
waitWhile(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition,
long timeoutMilliseconds,
long pollingIntervalMilliseconds)
Wait while given collection meets given conditions.
|
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, remove, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArraypublic UiElement get(int index)
public UiElement first()
public UiElement last()
public int size()
public UiElementCollection shouldHaveSize(int expectedSize)
expectedSize - expected size of the collectionpublic UiElementCollection shouldBe(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition... conditions)
public UiElementCollection shouldHave(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition... conditions)
public UiElementCollection waitUntil(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition)
Wait until given collection meets given conditions.
java.lang.IllegalStateException - if collection still is not matched to condition after the timeoutpublic UiElementCollection waitUntil(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition, long timeoutMilliseconds)
Wait until given collection meets given conditions.
timeoutMilliseconds - timeout in milliseconds.java.lang.IllegalStateException - if collection still is not matched to condition after the timeoutpublic UiElementCollection waitUntil(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition, long timeoutMilliseconds, long pollingIntervalMilliseconds)
Wait until given collection meets given conditions.
timeoutMilliseconds - timeout in milliseconds.pollingIntervalMilliseconds - interval in milliseconds, when checking conditionjava.lang.IllegalStateException - if collection still is not matched to condition after the timeoutpublic UiElementCollection waitWhile(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition)
Wait while given collection meets given conditions.
java.lang.IllegalStateException - if collection still is not matched to condition after the timeoutpublic UiElementCollection waitWhile(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition, long timeoutMilliseconds)
Wait while given collection meets given conditions.
timeoutMilliseconds - timeout in milliseconds.java.lang.IllegalStateException - if collection still is not matched to condition after the timeoutpublic UiElementCollection waitWhile(com.workfusion.rpa.helpers.conditionsnative.collection.UiCollectionCondition condition, long timeoutMilliseconds, long pollingIntervalMilliseconds)
Wait while given collection meets given conditions.
timeoutMilliseconds - timeout in milliseconds.pollingIntervalMilliseconds - interval in milliseconds, when checking conditionjava.lang.IllegalStateException - if collection still is not matched to condition after the timeoutpublic UiElementCollection filter(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
condition - public UiElementCollection filterBy(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
condition - filter(UiCondition)public UiElementCollection exclude(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
condition - public UiElementCollection excludeWith(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
condition - exclude(UiCondition)public UiElement find(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
condition - public UiElement findBy(com.workfusion.rpa.helpers.conditionsnative.UiCondition condition)
condition - find(UiCondition)public java.lang.String[] getTexts()
public static java.lang.String[] getTexts(java.util.Collection<? extends WebElement> elements)
elements - Any collection of WebElementspublic static java.lang.String elementsToString(java.util.List<? extends WebElement> elements)
elements - public java.util.Iterator<UiElement> iterator()
public java.util.ListIterator<UiElement> listIterator()
public java.util.ListIterator<UiElement> listIterator(int index)
public java.lang.String toString()
toString in class java.util.AbstractCollection<UiElement>Copyright © 2024 WorkFusion, Inc. All rights reserved.