Ah, You are using UI Catalog.
Basically you have a choice of either finding element by uiautomation or xpath. Both have their advantages. UIAutomation is going away in about 6 months so xpath may be useful?
In any case, this should work.
-
Find the number of elements. This should count items offscreen for iOS.
find_elements(:xpath, “//UIATableView[1]/UIATableCell”).size -
For each count iterate on the elements and find the text entry. Here we get the first one. Use your iteration counter and loop through accordingly.
find_elements(:xpath, “//UIATableView[1]/UIATableCell/UIAStaticText[1]”).map {|e| e.text}
More info here:
Good luck! Here’s a screen shot that may help
