0

I am actually trying to list all the available controls in a particular screen in an app so I want to know from where exactly does target.logElementTree() retrieve the information ?? or how to retrieve the all the controls available on a particular screen from the view controller ??

I am using Xcode 6.3.2 , UIAutomation in Instruments.

Thank you for taking time to go through till the end .

Prabhu Konchada
  • 548
  • 8
  • 26

1 Answers1

0

At present, this is provided by some private code within Instruments.

To access all the available elements, see Apple's documentation on UIAutomation, specifically the section on determining the element hierarchy.

Ian
  • 11,280
  • 3
  • 36
  • 58