How to select value from Native iOS Drop Down using Appium v1.8.1

Below is the screenshot of the DropDown Textfield which I want to automate:

I have extracted below element:

@iOSFindBy(xpath = “//XCUIElementTypeCell[3]/XCUIElementTypeTextField”)
IOSElement sportsTextField;

And tried below actions which were unsuccessful:

  1. sportsTextField.sendKeys(text);
  2. sportsTextField.clear();

This is my Page Source(driver.getPageSource()) of the screen where drop-down field is located: https://gist.github.com/prat3ik/694bdfd6f5400ac8f54bed0f2ce2f385

Any help on this would really appreciated.

Hi,

Can you please tell me which tool to inspect element that you were added in the screenshot.