How to set Accessibility ID and Label in XCode?

Mobile Testing, Android App Testing.
tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

How to set Accessibility ID and Label in XCode?

Post by tvu » Fri Oct 09, 2015 10:24 pm

We set the Accessibility Identifier for a UILabel in the XIB file, but the id isn't showing up in Spy. However, it does show up in the XCode automation tool. If we set the identifier value via code in the Swift file then it does show up in Spy. How can get the Identifier to show up if we set it in the XIB file?

We are using XCode 7.0.1 and Ranorex 4.5.2.

Thanks.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3908
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to set Accessibility ID and Label in XCode?

Post by odklizec » Sat Oct 10, 2015 7:00 am

Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Re: How to set Accessibility ID and Label in XCode?

Post by tvu » Thu Oct 15, 2015 9:50 pm

Thanks odklizec! This worked.