This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 4
Dec 2016

I am trying to select a date from picker using id(picker) and sendKeys() . No exception or error is thrown.But picker value remains the same(default).

Following is the code , tried with class name too .
MobileElement picker = (MobileElement) driver.findElement(By.xpath("//android.view.View[@resource-id=':id/left_picker']")); picker.sendKeys(day);

Attaching the screenshot of UI Automator hierarchy.

  • created

    Dec '16
  • last reply

    Jul '18
  • 3

    replies

  • 896

    views

  • 4

    users

  • 1

    link

6 months later
1 year later

Did you manage to get this working? I am at the same stage where sendKeys() is not working. Any help is appreciated.