{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/6572","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/6572/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/6572/comments","events_url":"https://api.github.com/repos/appium/appium/issues/6572/events","html_url":"https://github.com/appium/appium/issues/6572","id":159412003,"number":6572,"title":"Impossibe to read hint text from the android.widget.EditText field.","user":{"login":"acidroed","id":13766722,"avatar_url":"https://avatars.githubusercontent.com/u/13766722?v=3","gravatar_id":"","url":"https://api.github.com/users/acidroed","html_url":"https://github.com/acidroed","followers_url":"https://api.github.com/users/acidroed/followers","following_url":"https://api.github.com/users/acidroed/following{/other_user}","gists_url":"https://api.github.com/users/acidroed/gists{/gist_id}","starred_url":"https://api.github.com/users/acidroed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acidroed/subscriptions","organizations_url":"https://api.github.com/users/acidroed/orgs","repos_url":"https://api.github.com/users/acidroed/repos","events_url":"https://api.github.com/users/acidroed/events{/privacy}","received_events_url":"https://api.github.com/users/acidroed/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-09T13:46:49Z","updated_at":"2016-06-10T15:08:19Z","closed_at":null,"body":"## The problem\r\nIt's impossibe to read hint text from the android.widget.EditText element. I know that it could be possible to use element.getAttribute(\"name\") earlier, but now it doesn't work.\r\n\r\n## Environment\r\n\r\n* Appium version: 1.4.16.1\r\n* Desktop OS/version used to run Appium: Windows 7\r\n* Mobile platform/version under test: Nexus4, Android 4.4.2, API19\r\n* Real device or emulator/simulator: emulator\r\n* Appium CLI or Appium.app|exe: exe\r\n\r\n## Details\r\n\r\nI have EditText Element in my app. It's username field. So, when it's empty, I need to check that \"Username\" hint text is present, but I can't read it.\r\nThere is screenshot from UI Automator Viewer:\r\n![appiumissue](https://cloud.githubusercontent.com/assets/13766722/15931754/b1ad2266-2e61-11e6-91fa-fba474e05a99.PNG)\r\n\r\nelement.getAttribute(\"name\") returns \"\". Also I've tried element.getAttribute(\"hint\"), but there was exception.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/225208773","html_url":"https://github.com/appium/appium/issues/6572#issuecomment-225208773","issue_url":"https://api.github.com/repos/appium/appium/issues/6572","id":225208773,"user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T15:08:19Z","updated_at":"2016-06-10T15:08:19Z","body":"If the UI Automator Viewer is unable to find it, then Appium will not be able to find it (since Appium uses Ui Automator to automate the app). What version of the Android SDK are you using? It worked for my test app using the latest (25.1.7)."}}
{"actor":{"display_login":"imurchie"}}