aboutsummaryrefslogtreecommitdiff
path: root/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
diff options
context:
space:
mode:
authorKevin Jin <kjin@google.com>2013-03-18 15:27:20 -0700
committerKevin Jin <kjin@google.com>2013-03-18 16:35:21 -0700
commit7b2b76255593f0ecfbe2d7f996712fefb391dfed (patch)
tree9abde812eea05e30adefbd9a98ed5fe1f277383b /src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
parentacde362144222864329ad64d7e746b717103c806 (diff)
downloaddroiddriver-7b2b76255593f0ecfbe2d7f996712fefb391dfed.tar.gz
support xpath
Build a virtual DOM tree that maps UiAutomationElement or InstrumentationElement tree, respectively. Then use XPath on the DOM tree. TODO: filter insignificant nodes to make use of uiautomatorviewer TODO: add all attrs Change-Id: I2f9e289b77350f1e920a492ce438ebfd67882058
Diffstat (limited to 'src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java')
-rw-r--r--src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java b/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
index b8b1c47..dbc822a 100644
--- a/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
+++ b/src/com/google/android/droiddriver/uiautomation/UiAutomationContext.java
@@ -21,8 +21,6 @@ import android.view.InputEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import com.google.android.droiddriver.InputInjector;
-import com.google.android.droiddriver.UiElement;
-import com.google.android.droiddriver.util.Logs;
import com.google.common.base.Preconditions;
/**
@@ -51,7 +49,7 @@ public class UiAutomationContext {
}
// TODO: cache by node?
- public UiElement getUiElement(AccessibilityNodeInfo node) {
- return Logs.wrap(UiElement.class, new UiAutomationElement(this, node));
+ public UiAutomationElement getUiElement(AccessibilityNodeInfo node) {
+ return new UiAutomationElement(this, node);
}
}