public class UiAutomationElement extends BaseUiElement<android.view.accessibility.AccessibilityNodeInfo,UiAutomationElement>
ATTRIB_NOT_VISIBLE, ATTRIB_VISIBLE_BOUNDS
Modifier | Constructor and Description |
---|---|
protected |
UiAutomationElement(UiAutomationContext context,
android.view.accessibility.AccessibilityNodeInfo node,
UiAutomationElement parent)
A snapshot of all attributes is taken at construction.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doPerformAndWait(java.util.concurrent.FutureTask<java.lang.Boolean> futureTask,
long timeoutMillis)
Note: This implementation of
doPerformAndWait clears the
AccessibilityEvent queue. |
protected java.util.Map<Attribute,java.lang.Object> |
getAttributes() |
protected java.util.List<UiAutomationElement> |
getChildren() |
InputInjector |
getInjector()
Gets the
InputInjector for injecting InputEvent. |
UiAutomationElement |
getParent()
Gets the parent.
|
android.view.accessibility.AccessibilityNodeInfo |
getRawElement()
Gets the raw element used to create this UiElement.
|
android.graphics.Rect |
getVisibleBounds()
Gets the UiElement bounds in screen coordinates.
|
boolean |
isVisible() |
click, doPerform, doubleClick, get, getBounds, getChildren, getClassName, getContentDescription, getPackageName, getResourceId, getSelectionEnd, getSelectionStart, getText, hasSelection, isCheckable, isChecked, isClickable, isEnabled, isFocusable, isFocused, isLongClickable, isPassword, isScrollable, isSelected, longClick, perform, scroll, setText, setUiElementActor, setValidator, toString
protected UiAutomationElement(UiAutomationContext context, android.view.accessibility.AccessibilityNodeInfo node, UiAutomationElement parent)
UiAutomationElement
instance are immutable. If the underlying
AccessibilityNodeInfo
is updated, a new UiAutomationElement
instance will be created in
DroidDriver.refreshUiElementTree()
.public android.graphics.Rect getVisibleBounds()
UiElement
public boolean isVisible()
public UiAutomationElement getParent()
UiElement
protected java.util.List<UiAutomationElement> getChildren()
getChildren
in class BaseUiElement<android.view.accessibility.AccessibilityNodeInfo,UiAutomationElement>
protected java.util.Map<Attribute,java.lang.Object> getAttributes()
getAttributes
in class BaseUiElement<android.view.accessibility.AccessibilityNodeInfo,UiAutomationElement>
public InputInjector getInjector()
UiElement
InputInjector
for injecting InputEvent.protected void doPerformAndWait(java.util.concurrent.FutureTask<java.lang.Boolean> futureTask, long timeoutMillis)
doPerformAndWait
clears the
AccessibilityEvent
queue.doPerformAndWait
in class BaseUiElement<android.view.accessibility.AccessibilityNodeInfo,UiAutomationElement>
public android.view.accessibility.AccessibilityNodeInfo getRawElement()
BaseUiElement
getRawElement
in class BaseUiElement<android.view.accessibility.AccessibilityNodeInfo,UiAutomationElement>