public interface UserinterfaceObject
UserinterfaceObject
exposes the base interactions that can be carried on any Android UI automation
element. This class makes some minor changes to the methods exposed by UiObject of Android UiAutomator framework.
Refer to the below link for information on UiObject.Modifier and Type | Method and Description |
---|---|
void |
clearText()
Clears the existing text contents in an editable field.
|
void |
click(Object... expected)
Performs a click at the center of the visible bounds of the UI element represented by this UiObject.
|
void |
clickBottomRight(Object... expected)
Clicks the bottom and right corner of the UI element.
|
void |
clickTopLeft(Object... expected)
Clicks the top and left corner of the UI element.
|
String |
getText()
Reads the text property of the UI element.
|
boolean |
isCheckable()
Checks if the UI element's checkable property is currently true.
|
boolean |
isChecked()
Checks if the UI element's checked property is currently true.
|
boolean |
isClickable()
Checks if the UI element's clickable property is currently true.
|
boolean |
isEnabled()
Checks if the UI element's enabled property is currently true.
|
boolean |
isFocusable()
Checks if the UI element's focusable property is currently true.
|
boolean |
isFocused()
Checks if the UI element's focused property is currently true.
|
boolean |
isLongClickable()
Checks if the view's long-clickable property is currently true.
|
boolean |
isScrollable()
Checks if the view's scrollable property is currently true.
|
boolean |
isSelected()
Checks if the UI element's selected property is currently true.
|
void |
longClick(Object... expected)
Long clicks the center of the visible bounds of the UI element.
|
void |
longClickBottomRight(Object... expected)
Long clicks bottom and right corner of the UI element.
|
void |
longClickTopLeft(Object... expected)
Long clicks on the top and left corner of the UI element.
|
void |
setText(String text)
Sets the text in an editable field, after clearing the field's content.
|
void |
swipeDown(Object... expected)
Performs the swipe down action on the UiObject.
|
void |
swipeLeft(Object... expected)
Performs the swipe left action on the UiObject.
|
void |
swipeRight(Object... expected)
Performs the swipe right action on the UiObject.
|
void |
swipeUp(Object... expected)
Performs the swipe up action on the UiObject.
|
void clearText()
void click(Object... expected)
void clickBottomRight(Object... expected)
void clickTopLeft(Object... expected)
String getText()
boolean isCheckable()
boolean isChecked()
boolean isClickable()
boolean isEnabled()
boolean isFocusable()
boolean isFocused()
boolean isLongClickable()
boolean isScrollable()
boolean isSelected()
void longClick(Object... expected)
void longClickBottomRight(Object... expected)
void longClickTopLeft(Object... expected)
void setText(String text)
text
- String to set.void swipeLeft(Object... expected)
void swipeRight(Object... expected)
void swipeUp(Object... expected)
void swipeDown(Object... expected)
Copyright © 2016 PayPal Open Source. All rights reserved.