Pod to auto add accessibility identifier

232 views
Skip to first unread message

Alexandre Garrefa

unread,
May 19, 2015, 11:11:13 AM5/19/15
to calaba...@googlegroups.com
Hey guys.

I've released a pod that you just add to your project and it will auto generate accessibility identifiers to key objects for automated testing.
Check my github, id love to get feedback: https://github.com/garrefa/AXMagicIdentifiers

  • Top levem UIViews have accID set as 'CLASS_NAME'_VIEW.
  • UITableViewCells have accID set as 'CLASS_NAME'_CELL_S'SECTION_NUMBER'R'ROW_NUMBER'.
  • UICollectionViewCells have accID set as 'CLASS_NAME'_CELL_S'SECTION_NUMBER'R'ROW_NUMBER'.
  • UIButtons have accID set as 'CLASS_NAME'BUTTON'BUTTON_TITLE'.
  • UIButtons will auto update accID when button title changes.
  • UITextView have accID set as 'CLASS_NAME'TXTVIEW'INDEX'.
  • UITextField have accID set as 'CLASS_NAME'TFIELD'INDEX'.
  • UIPageControll have accID set as 'CLASS_NAME'PAGEC'INDEX'.
  • UIPickerView have accID set as 'CLASS_NAME'PVIEW'INDEX'.
  • UISwitch have accID set as 'CLASS_NAME'SWITCH'INDEX'.
  • Wont change accID if already set unless its a UIButton where button text changes.

Supports iOS >= 7.0

Reply all
Reply to author
Forward
0 new messages