@ParametersAreNonnullByDefault public class BySelectorCollection extends java.lang.Object implements CollectionSource
| Constructor and Description |
|---|
BySelectorCollection(Driver driver,
org.openqa.selenium.By selector) |
BySelectorCollection(Driver driver,
WebElementSource parent,
org.openqa.selenium.By selector) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description() |
Driver |
driver() |
org.openqa.selenium.WebElement |
getElement(int index)
get Nth element of this collection
|
java.util.List<org.openqa.selenium.WebElement> |
getElements()
get elements of this collection (probably cached).
|
void |
setAlias(java.lang.String alias) |
public BySelectorCollection(Driver driver, org.openqa.selenium.By selector)
public BySelectorCollection(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector)
@CheckReturnValue @Nonnull public java.util.List<org.openqa.selenium.WebElement> getElements()
CollectionSourcegetElements in interface CollectionSource@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement getElement(int index)
CollectionSourcegetElement in interface CollectionSource@CheckReturnValue @Nonnull public java.lang.String description()
description in interface CollectionSource@CheckReturnValue @Nonnull public Driver driver()
driver in interface CollectionSourcepublic void setAlias(java.lang.String alias)
setAlias in interface CollectionSource