public class BySelectorCollection extends java.lang.Object implements CollectionSource
| Constructor and Description |
|---|
BySelectorCollection(Driver driver,
By selector) |
BySelectorCollection(Driver driver,
SearchContext parent,
By selector) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description() |
Driver |
driver() |
WebElement |
getElement(int index)
get Nth element of this collection
|
java.util.List<WebElement> |
getElements()
get elements of this collection (probably cached).
|
public BySelectorCollection(Driver driver, By selector)
public BySelectorCollection(Driver driver, SearchContext parent, By selector)
public java.util.List<WebElement> getElements()
CollectionSourcegetElements in interface CollectionSourcepublic WebElement getElement(int index)
CollectionSourcegetElement in interface CollectionSourcepublic java.lang.String description()
description in interface CollectionSourcepublic Driver driver()
driver in interface CollectionSource