aboutsummaryrefslogtreecommitdiff
path: root/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2013-10-30 13:10:10 -0700
committerKevin Jin <kjin@google.com>2013-11-04 13:47:14 -0800
commitdfc316e1bfb37148c50947c46f5aaed5cb2e708a (patch)
tree9633e30b2e6ff79fd692652b315b57452a819bc9 /src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
parent45828d52e6a2d9694eb507b5cafd3b6fcae9c33c (diff)
downloaddroiddriver-dfc316e1bfb37148c50947c46f5aaed5cb2e708a.tar.gz
Take snapshot of the underlying View or AccessibilityNodeInfo tree.
This improves reliability. Add JavaDoc on order of getChildren. Change-Id: Iec4a4b693ef29eea1e067d538bab0078699e3d50
Diffstat (limited to 'src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java')
-rw-r--r--src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java b/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
index 6e56dfb..0b56d33 100644
--- a/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
+++ b/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
@@ -62,10 +62,10 @@ class UiAutomationContext implements DroidDriverContext {
return injector;
}
- public UiAutomationElement getUiElement(AccessibilityNodeInfo node) {
+ public UiAutomationElement getUiElement(AccessibilityNodeInfo node, UiAutomationElement parent) {
UiAutomationElement element = map.get(node);
if (element == null) {
- element = new UiAutomationElement(this, node);
+ element = new UiAutomationElement(this, node, parent);
map.put(node, element);
}
return element;