Can you access the View Hierarchy for apps installed on iOS device using UI Automator?

685 views Asked by At

I know it is possible to use UIAutomator to access the view hierarchy of a given view/app that you have the appropriate keys/certificates for; however, is there a way to access the view hierarchy of applications that you do not have access to the Xcode project for? Such as those installed on a test device?

2

There are 2 answers

0
Sofa On

AFAIK you can run, hence have access to view hierarchy, only your app or any iOS system app e.g. Contacts.

0
Maxim Pavlov On

To access view hierarchy of third-party apps you can check this article, however you need to jailbreak your device and use Reveal. As far as I know there is no other way to do this.