From da00d6f8abb6e2b3ed27d6d6881c42ce3918bbeb Mon Sep 17 00:00:00 2001 From: caofengbin <1050430934@qq.com> Date: Sat, 3 Aug 2024 16:30:56 +0800 Subject: [PATCH] try to add editable attribute to node when dumpWindowHierarchy --- .../com/github/uiautomator/stub/AccessibilityNodeInfoDumper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/androidTest/java/com/github/uiautomator/stub/AccessibilityNodeInfoDumper.java b/app/src/androidTest/java/com/github/uiautomator/stub/AccessibilityNodeInfoDumper.java index e99b219..353ab4b 100644 --- a/app/src/androidTest/java/com/github/uiautomator/stub/AccessibilityNodeInfoDumper.java +++ b/app/src/androidTest/java/com/github/uiautomator/stub/AccessibilityNodeInfoDumper.java @@ -130,6 +130,7 @@ private static void dumpNodeRec(AccessibilityNodeInfo node, XmlSerializer serial serializer.attribute("", "visible-to-user", Boolean.toString(node.isVisibleToUser())); serializer.attribute("", "bounds", AccessibilityNodeInfoHelper.getVisibleBoundsInScreen( node, width, height, false).toShortString()); + serializer.attribute("", "editable", Boolean.toString(node.isEditable())); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { serializer.attribute("", "drawing-order", Integer.toString(Api24Impl.getDrawingOrder(node)));