I am having difficulty when I try to refer to a searchbar in my app when performing automated testing. If I use something like:
UIATarget.localTarget().frontMostApp().mainWindow().searchBars()
this does not appear to be a valid get method. Is there a master list of get methods for UIAElements (ex .buttons(), .views(), .listViews()) or is there a general rule? What is the proper get method for UISearchBars?
The reference is here: http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef/_index.html#//apple_ref/doc/uid/TP40009771
UAISearchBar inherits from UIATextFields so there you find the method 'searchBars'.