I am testing some new features of Android 5.0, and now it is a round UiAutomatorand a new method. I tried to find an example / guide, then I tried to get an instance of UiAutomator using
UiAutomator
getSystemService()
but it did not help. My goal is to use executeShellCommands(String str).
executeShellCommands(String str)
Has anyone already implemented?
To clarify, the UiAutomation class is not part of UiAutomator (although they have similar names).
UiAutomation, # getUiAutomation(). , Instrumentation.
UiAutomator , Runtime # exec() .