How to use/findElements - ByIosUIAutomation

  1. Click on Locator in the Appium GUI
  2. Select strategy “ios-uiautomation”
  3. 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
2 Likes