问题
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