- Click on Locator in the Appium GUI
- Select strategy “ios-uiautomation”
- Test your locators
This locator should work if you paste it into the “value” section in the Appium GUI:
.tableViews()[0].cells().firstWithPredicate("name beginswith 'Page Control'")
Example locator for UICatalog as you would use it in code:
locator = '.tableViews()[0].cells().firstWithPredicate("name beginswith \'Page Control\'")'
driver.find_element_by_ios_uiautomation(locator).click() # click on the element