io.selendroid.server.model
Class By.ByName

java.lang.Object
  extended by io.selendroid.server.model.By
      extended by io.selendroid.server.model.By.ByName
Enclosing class:
By

public static class By.ByName
extends By


Nested Class Summary
 
Nested classes/interfaces inherited from class io.selendroid.server.model.By
By.ByClass, By.ByCssSelector, By.ById, By.ByLinkText, By.ByName, By.ByPartialLinkText, By.ByTagName, By.ByXPath
 
Constructor Summary
By.ByName(String name)
           
 
Method Summary
 AndroidElement findElement(SearchContext context)
          Find a single element.
 List<AndroidElement> findElements(SearchContext context)
          Find many elements.
 String getElementLocator()
           
 
Methods inherited from class io.selendroid.server.model.By
className, cssSelector, equals, hashCode, id, linkText, name, partialLinkText, tagName, toString, xpath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

By.ByName

public By.ByName(String name)
Method Detail

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.