Searchable
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 functions |
|
|---|---|
UiObject2! |
findObject(selector: BySelector)Returns the first object to match the |
(Mutable)List<UiObject2!> |
findObjects(selector: BySelector)Returns all objects that match the |
Boolean |
hasObject(selector: BySelector)Returns whether there is a match for the given |
Public functions
findObject
fun findObject(selector: BySelector): UiObject2!
Returns the first object to match the selector criteria.
findObjects
fun findObjects(selector: BySelector): (Mutable)List<UiObject2!>
Returns all objects that match the selector criteria.
hasObject
fun hasObject(selector: BySelector): Boolean
Returns whether there is a match for the given selector criteria.