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