public static class By.ByLinkText 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 |
---|
ByLinkText(java.lang.String linkText) |
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.