I need to use AndroidViewClient to do some automated testing.
In my code, I use dump()
of the ViewClient. But I usually meet the following mistake:
RuntimeError: The views are being refreshed too frequently to dump.
It may raise by this:
ERROR: could not get idle state.
dtmilano (the author of Android Application Testing Guide) answered a similar problem in this question. He said there is a uiautomator limitation.
But my API's number is 19, Why there is still a uiautomator limitation? And how can I deal with this problem? How to use waitforidle()
?