# androidx.test.uiautomator

*** ** * ** ***

## Interfaces

|---|---|
| `https://developer.android.com/reference/androidx/test/uiautomator/Condition` | Represents a condition to be satisfied. |
| `https://developer.android.com/reference/androidx/test/uiautomator/IAutomationSupport` | Provides auxiliary support for running test cases |
| `https://developer.android.com/reference/androidx/test/uiautomator/Searchable` | The Searchable interface represents an object that can be searched for matching UI elements. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiAccessibilityValidator` | A validator that runs during test actions to check the accessibility of the UI. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiWatcher` | See `https://developer.android.com/reference/androidx/test/uiautomator/UiDevice#registerWatcher(java.lang.String,androidx.test.uiautomator.UiWatcher)` on how to register a a condition watcher to be called by the automation library. |

## Classes

|---|---|
| `https://developer.android.com/reference/androidx/test/uiautomator/AccessibilityNodeInfoExt` |   |
| `https://developer.android.com/reference/androidx/test/uiautomator/AccessibilityWindowInfoExt` |   |
| `https://developer.android.com/reference/androidx/test/uiautomator/By` | `https://developer.android.com/reference/androidx/test/uiautomator/By` is a utility class which enables the creation of `https://developer.android.com/reference/androidx/test/uiautomator/BySelector`s in a concise manner. |
| `https://developer.android.com/reference/androidx/test/uiautomator/By.Window` | This nested class is used to create a `https://developer.android.com/reference/androidx/test/uiautomator/ByWindowSelector` that matches a window. |
| `https://developer.android.com/reference/androidx/test/uiautomator/BySelector` | A `https://developer.android.com/reference/androidx/test/uiautomator/BySelector` specifies criteria for matching UI elements during a call to `https://developer.android.com/reference/androidx/test/uiautomator/UiDevice#findObject(androidx.test.uiautomator.BySelector)`. |
| `https://developer.android.com/reference/androidx/test/uiautomator/ByWindowSelector` | A `https://developer.android.com/reference/androidx/test/uiautomator/ByWindowSelector` specifies criteria for matching UI windows during a call to `https://developer.android.com/reference/androidx/test/uiautomator/UiDevice#findWindow(androidx.test.uiautomator.ByWindowSelector)`. |
| `https://developer.android.com/reference/androidx/test/uiautomator/Configurator` | Allows you to set key parameters for running UiAutomator tests. |
| `https://developer.android.com/reference/androidx/test/uiautomator/EventCondition` | An `https://developer.android.com/reference/androidx/test/uiautomator/EventCondition` is a condition which depends on an event or series of events having occurred. |
| `https://developer.android.com/reference/androidx/test/uiautomator/ResultsReporter` | Allows to report test results to Android Studio. |
| `https://developer.android.com/reference/androidx/test/uiautomator/SearchCondition` | A `https://developer.android.com/reference/androidx/test/uiautomator/SearchCondition` is a condition that is satisfied by searching for UI elements. |
| `https://developer.android.com/reference/androidx/test/uiautomator/StableResult` | Represents a node that is considered stable and it's returned by `https://developer.android.com/reference/androidx/test/uiautomator/package-summary#(android.view.accessibility.AccessibilityNodeInfo).waitForStable(kotlin.Long,kotlin.Long,kotlin.Long,kotlin.Boolean)`. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiAutomatorInstrumentationTestRunner` | **This class is deprecated.** as it only handles deprecated `https://developer.android.com/reference/androidx/test/uiautomator/UiAutomatorTestCase`s. <br /> |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiAutomatorTestCase` | **This class is deprecated.** It is no longer necessary to extend UiAutomatorTestCase. <br /> |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiAutomatorTestScope` | A UiAutomator scope that allows to easily access UiAutomator api and utils class. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiAutomatorTestScopeKt` |   |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiCollection` | Used to enumerate a container's UI elements for the purpose of counting, or targeting a sub elements by a child's text or description. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiDevice` | UiDevice provides access to state information about the device. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiDeviceExt` |   |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiObject` | A UiObject is a representation of a view. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiObject2` | Represents a UI element, and exposes methods for performing gestures (clicks, swipes) or searching through its children. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiObject2Condition` | A `https://developer.android.com/reference/androidx/test/uiautomator/UiObject2Condition` is a condition which is satisfied when a `https://developer.android.com/reference/androidx/test/uiautomator/UiObject2` is in a particular state. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiObject2Ext` |   |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiScrollable` | UiScrollable is a `https://developer.android.com/reference/androidx/test/uiautomator/UiCollection` and provides support for searching for items in scrollable layout elements. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiSelector` | Specifies the elements in the layout hierarchy for tests to target, filtered by properties such as text value, content-description, class name, and state information. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiWindow` | Represents a UI window on the screen and provides methods to access its properties and perform actions. |
| `https://developer.android.com/reference/androidx/test/uiautomator/Until` | The `https://developer.android.com/reference/androidx/test/uiautomator/Until` class provides factory methods for constructing common conditions. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UtilsKt` |   |

## Enums

|---|---|
| `https://developer.android.com/reference/androidx/test/uiautomator/Direction` | An enumeration used to specify the primary direction of certain gestures. |

## Exceptions

|---|---|
| `https://developer.android.com/reference/androidx/test/uiautomator/ElementNotFoundException` | Thrown when an element is not found after invoking `https://developer.android.com/reference/androidx/test/uiautomator/package-summary#(android.view.accessibility.AccessibilityNodeInfo).onElement(kotlin.Long,kotlin.Long,kotlin.Function1)` or `https://developer.android.com/reference/androidx/test/uiautomator/package-summary#(android.view.accessibility.AccessibilityNodeInfo).onElements(kotlin.Long,kotlin.Long,kotlin.Function1)`. |
| `https://developer.android.com/reference/androidx/test/uiautomator/StaleObjectException` | A `https://developer.android.com/reference/androidx/test/uiautomator/StaleObjectException` exception is thrown when a `https://developer.android.com/reference/androidx/test/uiautomator/UiObject2` is used after the underlying `https://developer.android.com/reference/android/view/View.html` has been destroyed. |
| `https://developer.android.com/reference/androidx/test/uiautomator/UiObjectNotFoundException` | Generated in test runs when a `https://developer.android.com/reference/androidx/test/uiautomator/UiSelector` selector could not be matched to any UI element displayed. |