UI Automator Viewer finds elements inconsisently

大兔子大兔子 提交于 2019-12-12 05:19:10

问题


I have a weird issue while working with the UI Automator Viewer. The problem is that I get inconsistent result when doing "Device Screenshot" (uiautomator dump). So in some cases, I get all the elements(nodes) but in some cases I get only some of them, generally the basic whole page view without the textviews and buttons on it.

To make things even more challenging, it looks like it happens absolutely random. So I can click on screenshot/dump button multiple times in a row and get different results while the application on the device (or emulator) stays untouched!

I have experienced the same issue on both, a real device and an emulator. The application that am working on is a hybrid application which does not provide WEBVIEW handles.

What can possibly cause such behavior?

来源:https://stackoverflow.com/questions/35284193/ui-automator-viewer-finds-elements-inconsisently

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!