原文:UIautomatorviewer 启动后定位元素报错:Error while obtaining UI hierarchy XML file:com.android.ddmlib.SyncException.

解决方法:关掉Appium,在cmd命令窗口中输入 adb root 如果手机可以root的话 即可。 ...

2018-09-12 12:30 1 4452 推荐指数:

查看详情

uiautomatorviewer 报错 Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!

在进行自动化时经常需要使用到 uiautomatorviewer获取控件的各个属性,然后在脚本中通过各个控件的属性来操作。 如果使用的是uiautomator2的话,一般都是使用weditor这个来查看控件属性,这个一般都不会遇到啥问题。 如果使用的是uiautomator的话(相当于 ...

Wed Dec 04 00:23:00 CST 2019 0 268
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM