diff options
author | Svetoslav <svetoslavganov@google.com> | 2013-02-05 14:39:57 -0800 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2013-02-05 14:40:25 -0800 |
commit | 56a7ae5d4fb91af7a8f4fb4ebbb778073be6feb3 (patch) | |
tree | 5581e1bcd417020dc3c7b18d9304e0783ed2d9e0 /uiautomator | |
parent | ebb34d471480ae1d170985ea4a14cdf867220c08 (diff) | |
download | testing-56a7ae5d4fb91af7a8f4fb4ebbb778073be6feb3.tar.gz |
Update for renamed APIs
Change-Id: I4703830d6554f16abfd03c2e162a317f278cc005
Diffstat (limited to 'uiautomator')
-rw-r--r-- | uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java | 2 | ||||
-rw-r--r-- | uiautomator/library/core-src/com/android/uiautomator/core/UiSelector.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java b/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java index 295bc06..aae9cf2 100644 --- a/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java +++ b/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java @@ -100,7 +100,7 @@ public class AccessibilityNodeInfoDumper { serializer.attribute("", "NAF", Boolean.toString(true)); serializer.attribute("", "index", Integer.toString(index)); serializer.attribute("", "text", safeCharSeqToString(node.getText())); - serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewId())); + serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewIdResourceName())); serializer.attribute("", "class", safeCharSeqToString(node.getClassName())); serializer.attribute("", "package", safeCharSeqToString(node.getPackageName())); serializer.attribute("", "content-desc", safeCharSeqToString(node.getContentDescription())); diff --git a/uiautomator/library/core-src/com/android/uiautomator/core/UiSelector.java b/uiautomator/library/core-src/com/android/uiautomator/core/UiSelector.java index 68f37e4..d16aff7 100644 --- a/uiautomator/library/core-src/com/android/uiautomator/core/UiSelector.java +++ b/uiautomator/library/core-src/com/android/uiautomator/core/UiSelector.java @@ -772,7 +772,7 @@ public class UiSelector { } break; case UiSelector.SELECTOR_RESOURCE_ID: - if (node.getViewId() != getString(criterion)) { + if (node.getViewIdResourceName() != getString(criterion)) { return false; } break; |