Hi appium community,
the scenario is as follows: I have a date inputfield in my web application. If I open the application with an android device, the datepicker dialog opens. So far so good. I want to automate the datepicker dialog, to set the input with appium for testing purposes. And I also want to test the datepicker dialog language independent. For english devices, the months are obviously in english and for other languages the months are translated to the respective language.
I’ve tried sendKeys() on android.widget.DatePicker but that didn’t work.
I have found following blogpost for automating the datepicker on android 6+: http://learningsat.blogspot.de/2016/12/appium-android-date-picker-marshmellow.html
The author has set the month by parsing the current set month. For me, this solutions seems a bit to complicated. Isn’t there a better approach?
All other solutions, I’ve found were outdated (API <= 19).
For now, I only want to test/automate the datepicker on android 6.0+ (API 23+) devices.
Thanks in advance.