{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/6591","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/6591/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/6591/comments","events_url":"https://api.github.com/repos/appium/appium/issues/6591/events","html_url":"https://github.com/appium/appium/issues/6591","id":160581678,"number":6591,"title":"Unable to select Date Picker in android using Appium","user":{"login":"testingmobileautomation","id":19967595,"avatar_url":"https://avatars.githubusercontent.com/u/19967595?v=3","gravatar_id":"","url":"https://api.github.com/users/testingmobileautomation","html_url":"https://github.com/testingmobileautomation","followers_url":"https://api.github.com/users/testingmobileautomation/followers","following_url":"https://api.github.com/users/testingmobileautomation/following{/other_user}","gists_url":"https://api.github.com/users/testingmobileautomation/gists{/gist_id}","starred_url":"https://api.github.com/users/testingmobileautomation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testingmobileautomation/subscriptions","organizations_url":"https://api.github.com/users/testingmobileautomation/orgs","repos_url":"https://api.github.com/users/testingmobileautomation/repos","events_url":"https://api.github.com/users/testingmobileautomation/events{/privacy}","received_events_url":"https://api.github.com/users/testingmobileautomation/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-16T05:39:47Z","updated_at":"2016-06-16T11:21:50Z","closed_at":null,"body":"## The problem\r\n\r\nI'm unable to select the date-picker in an android device using appium.\r\nI have tried three ways but still am unable to change.\r\nKindly suggest me how do I proceed in this.\r\n\r\n\r\n\r\n## Details\r\n\r\nI have tried using the Xpath, the inspector is inspecting the element but it is not altering the values I provided through .sendkeys.\r\nSo, kindly if there's any suggestions please pass it, so that it helps me to move forward.\r\n\r\n## Code To Reproduce Issue \r\n![datepicker](https://cloud.githubusercontent.com/assets/19967595/16106526/c213c442-33b2-11e6-93f9-a5900c226d66.jpg)\r\n\r\n**Try #1**\r\n((AndroidElement)(driver.findElementByXPath(\"//android.widget.NumberPicker[@index='0']//android.widget.Button[@index=0]\"))).tap(1, 2);\r\n\t\t((AndroidElement)(driver.findElementByXPath(\"//android.widget.NumberPicker[@index='1']//android.widget.Button[@index=0]\"))).tap(1, 2);\r\n\t\t((AndroidElement)(driver.findElementByXPath(\"//android.widget.NumberPicker[@index='2']//android.widget.Button[@index=0]\"))).tap(1, 2);\r\n\r\n\r\n**Try #2**\r\nList<WebElement> pick = driver.findElements(By.className(\"android.widget.EditText\"));\r\n\t\t\t pick.get(0).sendKeys(\"24\");;\r\n\t\t\t pick.get(1).sendKeys(\"5\");\r\n\t\t\t pick.get(2).sendKeys(\"1991\");\r\n\r\n**Try #3** \r\ndriver.findElement(By.xpath(\"//android.widget.NumberPicker[@index='0']\")).sendKeys(\"5\");\r\n\t\t\t driver.findElement(By.xpath(\"//android.widget.NumberPicker[@index='1']\")).sendKeys(\"5\");\r\n\t\t\t driver.findElement(By.xpath(\"//android.widget.NumberPicker[@index='2']\")).sendKeys(\"1990\")"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/226457831","html_url":"https://github.com/appium/appium/issues/6591#issuecomment-226457831","issue_url":"https://api.github.com/repos/appium/appium/issues/6591","id":226457831,"user":{"login":"kasirga32","id":3637211,"avatar_url":"https://avatars.githubusercontent.com/u/3637211?v=3","gravatar_id":"","url":"https://api.github.com/users/kasirga32","html_url":"https://github.com/kasirga32","followers_url":"https://api.github.com/users/kasirga32/followers","following_url":"https://api.github.com/users/kasirga32/following{/other_user}","gists_url":"https://api.github.com/users/kasirga32/gists{/gist_id}","starred_url":"https://api.github.com/users/kasirga32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasirga32/subscriptions","organizations_url":"https://api.github.com/users/kasirga32/orgs","repos_url":"https://api.github.com/users/kasirga32/repos","events_url":"https://api.github.com/users/kasirga32/events{/privacy}","received_events_url":"https://api.github.com/users/kasirga32/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T11:21:50Z","updated_at":"2016-06-16T11:21:50Z","body":"You can try first click to EditText then send keys to it."}}
{"actor":{"display_login":"kasirga32"}}