Unable to set value in date picker wheel in ios


I am testing an ios native app, where I need to set date in date picker wheel.

I have tried send_keys and set_value, but it is not working.

I have explored a lot on this, I have found one solution:

List pickerEls = wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(pickers));

// use the sendKeys method to set the picker wheel values directly

but this code is in java and I am using python appium. There is no method like “get()” in python. How to make it work?

Puzzling problem. I’m no guru on web pages, but you want to check that pickerEls is the collection of pickers you expect it to be. In which case you just want to index into the list as normal, using the subscript operator, since the object returned will be a list.
Can you paste the XML as well?