The UiObject class has multiple methods, which could be used to perform user interactions on the UI component.
The methods of the class are as follows:
- click(): This clicks on the center of the visible bounds of the UI element.
- dragTo(): This drags this object to arbitrary coordinates.
- setText(): This sets the text in an editable field, after clearing the field's content. Conversely, the clearTextField() method clears the existing text in an editable field.
- swipeUp(): This performs the swipe up action on UiObject. Similarly, the swipeDown(), swipeLeft(), and swipeRight() methods perform corresponding actions.