Our requirement is how to interact the DatePicker , TimePicker and NumberPicker dialog elements through automation id . We have tried in iOS platform the elements has been tapped in automation but in Android it does not work properly.
The Framework DatePicker, TimePicker and Picker dialog items should be selected while run the automation . It is working fine in IOS platform.
The Framework DatePicker, TimePicker and Picker dialog items not selected through automation on android platform.
Xamarin.Forms Version used: 3.0.0.482510
Platform Target Frameworks:
DatePicker:
We have tried to select the Date in DatePicker through Automation.

Time Picker:

Picker:

It doesn't work on Android platform , but in iOS works fine.
For Android, you'll have to invoke the updateDate method on the datePicker. Something like this:
var dateTime = new DateTime(1999, 1, 3);
app.WaitForElement(x => x.Class("DatePicker"));
app.Query(x => x.Class("DatePicker").Invoke("updateDate", dateTime.Year, dateTime.Month, dateTime.Day));
For more info, take a look at this article from @jfversluis : https://blog.verslu.is/xamarin/uitest/pick-date-time-xamarin-uitest/
Most helpful comment
For Android, you'll have to invoke the
updateDatemethod on thedatePicker. Something like this:For more info, take a look at this article from @jfversluis : https://blog.verslu.is/xamarin/uitest/pick-date-time-xamarin-uitest/