io.selendroid.server.model
Class By.ByXPath
java.lang.Object
io.selendroid.server.model.By
io.selendroid.server.model.By.ByXPath
- Enclosing class:
- By
public static class By.ByXPath
- extends By
| Methods inherited from class io.selendroid.server.model.By |
className, cssSelector, equals, hashCode, id, linkText, name, partialLinkText, tagName, toString, xpath |
By.ByXPath
public By.ByXPath(String xpathExpression)
findElement
public AndroidElement findElement(SearchContext context)
- Description copied from class:
By
- Find a single element. Override this method if necessary.
- Specified by:
findElement in class By
- Parameters:
context - A context to use to find the element
- Returns:
- The AndroidElement that matches the selector
findElements
public List<AndroidElement> findElements(SearchContext context)
- Description copied from class:
By
- Find many elements.
- Specified by:
findElements in class By
- Parameters:
context - A context to use to find the element
- Returns:
- A list of AndroidElement matching the selector
getElementLocator
public String getElementLocator()
- Specified by:
getElementLocator in class By
Copyright © 2014. All rights reserved.