Android New Date Picker - Sendkeys Not working

I could not use sendKeys in this kind of picker.
I am now tapping the > keys shown in view to navigate and select the desired date. But this fails in automation schedules as the current date is changing daily.

Is there any way to use sendKeys directly to select the date?

or is this a bug?

MobileElement el = findElement(“ClassName”, “com.android.internal.widget.ViewPager”);
el.sendKeys(“12 April 2020”)

console log

[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“class name”,“selector”:“com.android.internal.widget.ViewPager”,“context”:“”,“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“class name”,“selector”:“com.android.internal.widget.ViewPager”,“context”:“”,“multiple”:false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding ‘com.android.internal.widget.ViewPager’ using ‘CLASS_NAME’ with the contextId: ‘’ multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=com.android.internal.widget.ViewPager, INSTANCE=0]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:{“ELEMENT”:“6”}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“6”}
[HTTP] ← POST /wd/hub/session/bd116d85-0219-4f0c-9f94-65ad8d5d97ef/element 200 38 ms - 87
[HTTP] → POST /wd/hub/session/bd116d85-0219-4f0c-9f94-65ad8d5d97ef/element/6/value {“id”:“6”,“value”:[“12 April 2020”]}
[debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [[“12 April 2020”],“6”,“bd116d85-0219-4f0c-9f94-65ad8d5d97ef”]
[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“6”,“text”:“12 April 2020”,“replace”:false,“unicodeKeyboard”:true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“element:setText”,“params”:{“elementId”:“6”,“text”:“12 April 2020”,“replace”:false,“unicodeKeyboard”:true}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: setText
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using element passed in: 6
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Attempting to clear using UiObject.clearText().
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Sending plain text to element: 12 April 2020
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.setValue() result: true

Am I missing any patterns here? Or is this a feature not supported yet??

Hey @Bala_Kumar did you find solution for this?

This is only possible with Espresso driver

Hi @mykola-mokhnach,
can you please share any example how we can do that. or any reference link. comfortable language is java.
Thanks in advance.