Searchable
public interface Searchable
UiDevice |
UiDevice provides access to state information about the device. |
UiObject2 |
Represents a UI element, and exposes methods for performing gestures (clicks, swipes) or searching through its children. |
UiWindow |
Represents a UI window on the screen and provides methods to access its properties and perform actions. |
The Searchable interface represents an object that can be searched for matching UI elements.
Summary
Public methods |
|
|---|---|
abstract UiObject2 |
findObject(@NonNull BySelector selector)Returns the first object to match the |
abstract @NonNull List<UiObject2> |
findObjects(@NonNull BySelector selector)Returns all objects that match the |
abstract boolean |
hasObject(@NonNull BySelector selector)Returns whether there is a match for the given |
Public methods
findObject
abstract UiObject2 findObject(@NonNull BySelector selector)
Returns the first object to match the selector criteria.
findObjects
abstract @NonNull List<UiObject2> findObjects(@NonNull BySelector selector)
Returns all objects that match the selector criteria.
hasObject
abstract boolean hasObject(@NonNull BySelector selector)
Returns whether there is a match for the given selector criteria.