Any sample project / tutorial with how to use XCUI Elements for Native IOS APP

Hi All,

I have started my first automation project using Cucumber/Selenium 3.4 with Appium 1.6.5 and iOS version 10.2.

I am able to launch the iOS app perfectly, but I am unable to interact with any elements.
for example, when the app launches, there a table with multiple values on the app page.
the Element is identified as

I have tried
Didnt work

I tried with table head
and its xpath is


to get all the elements of the table.

However i get the error
And the message is
A session is either terminated or not started


((IOSDriver) driver).findElementsByIosNsPredicate("value = '" + descr + "'") // value is Text to search
driver.findElement(MobileBy.iOSNsPredicateString("type == 'XCUIElementTypeStaticText' AND name == '" + name + "' AND visible == 1")) // name is ID in most cases

Thanks ! The following worked for me:

driver.findElement(MobileBy.iOSNsPredicateString(“type == ‘XCUIElementTypeStaticText’ AND name == '” + name + “’ AND visible == 1”)) // name is ID in most cases

I am not able to send keys to XCUIElementTypePickerWheel …

I did a workaround by implementing a script, that scrolls manually and compares element values to the one I’m looking for.