0

I am trying to programmatically analyse the various UI components present in any Android app after some duration of time, (the moment the app gets launched on the device) using the built-in tool uiautomator.

I found out that when I executed the command (adb shell uiautomator dump filename.xml) two times, the app's activity dump given by uiautomator (in the form of XML file) is different for the same app's activity.

My curiosity is if my activity is the same when we are running the uiautomator, then the UI components should also be same and hence, the uiautomator should always give the same output when we executed uiautomator from adb shell two times..

Does anyone have any insights to offer w.r.t this behavior of uiautomator? Thanks a lot for the help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.