public class SimpleElementList extends ArrayList<org.openqa.selenium.WebElement> implements SmartWebElementList
modCount| Constructor and Description |
|---|
SimpleElementList(org.openqa.selenium.By by,
WebDriverInterface iface) |
SimpleElementList(org.openqa.selenium.By by,
WebDriverInterface iface,
Collection<? extends org.openqa.selenium.WebElement> elements) |
SimpleElementList(org.openqa.selenium.By by,
WebDriverInterface iface,
Collection<? extends org.openqa.selenium.WebElement> elements,
org.openqa.selenium.WebElement baseElement) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.By |
getBy() |
List<org.openqa.selenium.WebElement> |
getElements() |
WebDriverInterface |
getInterface() |
void |
refresh()
Refreshes the list of elements
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringpublic SimpleElementList(org.openqa.selenium.By by,
WebDriverInterface iface)
public SimpleElementList(org.openqa.selenium.By by,
WebDriverInterface iface,
Collection<? extends org.openqa.selenium.WebElement> elements)
by - The by to find this element. If the element is a SmartWebElement, this by
overrides the by inside the SmartWebElementiface - The interface on which this element will appearelements - the collection whose elements are to be placed into this list
.public SimpleElementList(org.openqa.selenium.By by,
WebDriverInterface iface,
Collection<? extends org.openqa.selenium.WebElement> elements,
org.openqa.selenium.WebElement baseElement)
by - The by to find this element. If the element is a SmartWebElement, this by
overrides the by inside the SmartWebElementiface - The interface on which this element will appearelements - the collection whose elements are to be placed into this list.baseElement - If set, this element is used as base element for commands like findElement.public org.openqa.selenium.By getBy()
getBy in interface SmartWebElementListBy used to find the elementpublic WebDriverInterface getInterface()
public List<org.openqa.selenium.WebElement> getElements()
public void refresh()
an - Error when the driver is not yet instantiated.Copyright © 2013. All Rights Reserved.