Skip to content

Most visited

Recently visited



IAutomationSupport Provides auxiliary support for running test cases 
UiWatcher See registerWatcher(String, UiWatcher) on how to register a a condition watcher to be called by the automation library. 



By is a utility class which enables the creation of BySelectors in a concise manner. 

BySelector A BySelector specifies criteria for matching UI elements during a call to findObject(BySelector)
Configurator Allows you to set key parameters for running uiautomator tests. 
EventCondition<R> An EventCondition is a condition which depends on an event or series of events having occurred. 
SearchCondition<R> A SearchCondition is a condition that is satisfied by searching for UI elements. 
UiAutomatorInstrumentationTestRunner Test runner for UiAutomatorTestCases. 
UiAutomatorTestCase This class is deprecated. It is no longer necessary to extend UiAutomatorTestCase. You can use getInstance(Instrumentation) from any test class as long as you have access to an Instrumentation instance.  
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. 
UiDevice UiDevice provides access to state information about the device. 
UiObject A UiObject is a representation of a view. 
UiObject2 A UiObject2 represents a UI element. 
UiObject2Condition<R> A UiObject2Condition is a condition which is satisfied when a UiObject2 is in a particular state. 
UiScrollable UiScrollable is a UiCollection and provides support for searching for items in scrollable layout elements. 
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. 
Until The Until class provides factory methods for constructing common conditions. 


Direction An enumeration used to specify the primary direction of certain gestures. 


StaleObjectException A StaleObjectException exception is thrown when a UiObject2 is used after the underlying View has been destroyed. 
UiObjectNotFoundException Generated in test runs when a UiSelector selector could not be matched to any UI element displayed. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)