public static class By.ByClassName extends By implements java.io.Serializable
By.ByClassName, By.ByCssSelector, By.ById, By.ByLinkText, By.ByName, By.ByPartialLinkText, By.ByTagName, By.ByXPath
Constructor and Description |
---|
ByClassName(java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
WebElement |
findElement(SearchContext context)
Find a single element.
|
java.util.List<WebElement> |
findElements(SearchContext context)
Find many elements.
|
java.lang.String |
toString() |
public java.util.List<WebElement> findElements(SearchContext context)
By
findElements
in class By
context
- A context to use to find the elements.public WebElement findElement(SearchContext context)
By
findElement
in class By
context
- A context to use to find the element.