io.selendroid.server.model
Interface SearchContext

All Known Implementing Classes:
AbstractNativeElementContext, AbstractWebElementContext, DefaultSelendroidDriver.NativeSearchScope, DefaultSelendroidDriver.WebviewSearchScope

public interface SearchContext


Method Summary
 AndroidElement findElement(By by)
          Find the first AndroidElement using the given method.
 List<AndroidElement> findElements(By by)
          Find all elements within the current context using the given mechanism.
 

Method Detail

findElements

List<AndroidElement> findElements(By by)
Find all elements within the current context using the given mechanism.

Parameters:
by - The locating mechanism to use
Returns:
A list of all AndroidElements, or an empty list if nothing matches
See Also:
org.openqa.selenium.By

findElement

AndroidElement findElement(By by)
Find the first AndroidElement using the given method.

Parameters:
by - The locating mechanism
Returns:
The first matching element on the current context
Throws:
NoSuchElementException - If no matching elements are found


Copyright © 2014. All rights reserved.