void
|
clearTextField()
Clears the existing text contents in an editable field.
|
boolean
|
click()
Performs a click at the center of the visible bounds of the UI element represented
by this UiObject.
|
boolean
|
clickAndWaitForNewWindow(long timeout)
Performs a click at the center of the visible bounds of the UI element represented
by this UiObject and waits for window transitions.
|
boolean
|
clickAndWaitForNewWindow()
See clickAndWaitForNewWindow(long)
This method is intended to reliably wait for window transitions that would typically take
longer than the usual default timeouts.
|
boolean
|
clickBottomRight()
Clicks the bottom and right corner of the UI element
|
boolean
|
clickTopLeft()
Clicks the top and left corner of the UI element
|
boolean
|
exists()
Check if UI element exists.
|
Rect
|
getBounds()
Returns the UI element's bounds property.
|
UiObject
|
getChild(UiSelector selector)
Creates a new UiObject representing a child UI element of the element currently represented
by this UiObject.
|
int
|
getChildCount()
Counts the child UI elements immediately under the UI element currently represented by
this UiObject.
|
String
|
getContentDescription()
Reads the content_desc property of the UI element
|
UiObject
|
getFromParent(UiSelector selector)
Creates a new UiObject representing a child UI element from the parent element currently
represented by this object.
|
String
|
getPackageName()
Reads the UI element's package property
|
final
UiSelector
|
getSelector()
Debugging helper.
|
String
|
getText()
Reads the text property of the UI element
|
Rect
|
getVisibleBounds()
Returns the visible bounds of the UI element.
|
boolean
|
isCheckable()
Check if the UI element's checkable property is currently true
|
boolean
|
isChecked()
Check if the UI element's checked property is currently true
|
boolean
|
isClickable()
Check if the UI element's clickable property is currently true
|
boolean
|
isEnabled()
Check if the UI element's enabled property is currently true
|
boolean
|
isFocusable()
Check if the UI element's focusable property is currently true
|
boolean
|
isFocused()
Check if the UI element's focused property is currently true
|
boolean
|
isLongClickable()
Check if the UI element's long-clickable property is currently true
|
boolean
|
isScrollable()
Check if the UI element's scrollable property is currently true
|
boolean
|
isSelected()
Check if the UI element's selected property is currently true
|
boolean
|
longClick()
Long clicks the center of the visible bounds of the UI element
|
boolean
|
longClickBottomRight()
Long clicks bottom and right corner of the UI element
|
boolean
|
longClickTopLeft()
Long clicks on the top and left corner of the UI element
|
boolean
|
setText(String text)
Sets the text in an editable field, after clearing the field's content.
|
boolean
|
swipeDown(int steps)
Perform the action on the UI element that is represented by this object, Also see
#scrollToBeginning(int), #scrollToEnd(int), #scrollBackward(),
#scrollForward().
|
boolean
|
swipeLeft(int steps)
Perform the action on the UI element that is represented by this object.
|
boolean
|
swipeRight(int steps)
Perform the action on the UI element that is represented by this object.
|
boolean
|
swipeUp(int steps)
Perform the action on the UI element that is represented by this UiObject.
|
boolean
|
waitForExists(long timeout)
Waits a specified length of time for a UI element to become visible.
|
boolean
|
waitUntilGone(long timeout)
Waits a specified length of time for a UI element to become undetectable.
|