| 
        
        
        
        
        
        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()
      Waits for window transitions that would typically take longer than the
 usual default timeouts.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        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 | 
      clickBottomRight()
      Clicks the bottom and right corner of the UI element
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      clickTopLeft()
      Clicks the top and left corner of the UI element
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      dragTo(UiObject destObj, int steps)
      Drags this object to a destination UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      dragTo(int destX, int destY, int steps)
      Drags this object to arbitrary coordinates.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      exists()
      Check if view exists.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        AccessibilityNodeInfo | 
      findAccessibilityNodeInfo(long timeout)
      Finds a matching UI element in the accessibility hierarchy, by
 using the selector for this UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        Rect | 
      getBounds()
      Returns the view's boundsproperty. | 
  
  
  
  
  
    | 
        
        
        
        
        
        UiObject | 
      getChild(UiSelector selector)
      Creates a new UiObject for a child view that is under the present UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        int | 
      getChildCount()
      Counts the child views immediately under the present UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        String | 
      getClassName()
      Retrieves the classNameproperty of the UI element. | 
  
  
  
  
  
    | 
        
        
        
        
        
        String | 
      getContentDescription()
      Reads the content_descproperty of the UI element | 
  
  
  
  
  
    | 
        
        
        
        
        
        UiObject | 
      getFromParent(UiSelector selector)
      Creates a new UiObject for a sibling view or a child of the sibling view,
 relative to the present UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        String | 
      getPackageName()
      Reads the view's packageproperty | 
  
  
  
  
  
    | 
        
        
        
        final
        
        UiSelector | 
      getSelector()
      Debugging helper.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        String | 
      getText()
      Reads the textproperty of the UI element | 
  
  
  
  
  
    | 
        
        
        
        
        
        Rect | 
      getVisibleBounds()
      Returns the visible bounds of the view.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isCheckable()
      Checks if the UI element's checkableproperty is currently true. | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isChecked()
      Check if the UI element's checkedproperty is currently true | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isClickable()
      Checks if the UI element's clickableproperty is currently true. | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isEnabled()
      Checks if the UI element's enabledproperty is currently true. | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isFocusable()
      Check if the UI element's focusableproperty is currently true. | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isFocused()
      Check if the UI element's focusedproperty is currently true | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isLongClickable()
      Check if the view's long-clickableproperty is currently true | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isScrollable()
      Check if the view's scrollableproperty is currently true | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isSelected()
      Checks if the UI element's selectedproperty 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 | 
      performMultiPointerGesture(PointerCoords... touches)
      Performs a multi-touch gesture.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps)
      Generates a two-pointer gesture with arbitrary starting and ending points.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      pinchIn(int percent, int steps)
      Performs a two-pointer gesture, where each pointer moves diagonally
 toward the other, from the edges to the center of this UiObject .
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      pinchOut(int percent, int steps)
      Performs a two-pointer gesture, where each pointer moves diagonally
 opposite across the other, from the center out towards the edges of the
 this UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      setText(String text)
      Sets the text in an editable field, after clearing the field's content.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      swipeDown(int steps)
      Performs the swipe down action on the UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      swipeLeft(int steps)
      Performs the swipe left action on the UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      swipeRight(int steps)
      Performs the swipe right action on the UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      swipeUp(int steps)
      Performs the swipe up action on the UiObject.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      waitForExists(long timeout)
      Waits a specified length of time for a view to become visible.
        
    
 | 
  
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      waitUntilGone(long timeout)
      Waits a specified length of time for a view to become undetectable.
        
    
 |