Open brantxiong opened 9 years ago
adb shell uiautomator dump
culebra
does not consider this edge case. It might be possible to add it.adb shell uiautomator dump
output is as following on screen rendered by game engine on Android 4.3 devices:<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy rotation="0">
<node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="com.test.test" content-desc=""
checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false"
scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][720,1184]">
<node index="0" text="" resource-id="" class="android.widget.LinearLayout" package="com.test.test"
content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false"
focused="false" scrollable="false" long-clickable="false" password="false" selected="false"
bounds="[0,0][720,1184]">
<node index="0" text="" resource-id="android:id/content" class="android.widget.FrameLayout"
package="com.test.test" content-desc="" checkable="false" checked="false" clickable="false"
enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false"
password="false" selected="false" bounds="[0,0][720,1184]">
<node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="com.test.test"
content-desc="" checkable="false" checked="false" clickable="false" enabled="true"
focusable="false" focused="false" scrollable="false" long-clickable="false" password="false"
selected="false" bounds="[0,0][720,1184]">
<node index="0" text="" resource-id="" class="android.view.View" package="com.test.test"
content-desc="" checkable="false" checked="false" clickable="false" enabled="true"
focusable="true" focused="true" scrollable="false" long-clickable="false" password="false"
selected="false" bounds="[0,0][720,1184]"/>
<node NAF="true" index="1" text="" resource-id="" class="android.widget.EditText"
package="com.test.test" content-desc="" checkable="false" checked="false" clickable="true"
enabled="true" focusable="true" focused="false" scrollable="false" long-clickable="true"
password="false" selected="false" bounds="[0,0][720,96]"/>
</node>
</node>
</node>
</node>
</hierarchy>
You may find useful the latest version (v10.5.1) which introduces null backend support (culebra --null-back-end
).
Let me know if it solves your problem.
As I know, We can not get ui elements or structure on screen which rendered by game engine such as cocos2d-x. In this case, The culebra wil hangs showing "Please wait...", the output script is
self.vc.dump(window=-1)
.Would you help me solved that problem? Since I want culebra to work under this situation. I would like to Touch by PX on such UI.