I’m testing a native iOS app and I need to pick a value in the PickerWheel. My code clicks in the field to bring up the PickerWheel, but it’s unable to select a value. The code I’ve tried is:
driver.findElementByXPath("//UIAApplication[1]/UIAWindow[2]/UIAPicker[1]").sendKeys(“United States”);
and…
WebElement countryPicker = driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[2]/UIAPicker[1]"));
countryPicker.sendKeys(“Canada”);
But a value is never selected. No errors are displayed in the console either. I’ve also tried using the Inspector code for Precise Tap and a Swipe, but I still can’t select one of the two values (which are both displayed). I’m using Appium Server 1.4.13, Java Client 3.4.1 and a real device- iPhone 6 Plus running 8.4.1. Any idea why it can’t select with the sendKeys command or any other workaround?
Thanks