Select Page

iPhone Testing : UIAutomation Instrument and Object Maps

Is anyone out there using their own javascript solution to store the UI object map?  If so, any insight about how you’re doing this is appreciated.  I’m testing an app that has hundreds of UI objects (buttons, table cells, labels, etc) and just looking for various paradigms for approaching the situation of fetching each of these objects in a clean way instead of calling:
this.mainWin.tableViews()[0].cells()[0].textFields()[0];

Ideally, this would be abstracted in a function like :
getEmailTextField : function () {
  return } Any ideas?