{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/8299","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/8299/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/8299/comments","events_url":"https://api.github.com/repos/appium/appium/issues/8299/events","html_url":"https://github.com/appium/appium/issues/8299","id":223144446,"number":8299,"title":"Unable to set_value or click on one View","user":{"login":"mwalla210","id":18332047,"avatar_url":"https://avatars3.githubusercontent.com/u/18332047?v=4","gravatar_id":"","url":"https://api.github.com/users/mwalla210","html_url":"https://github.com/mwalla210","followers_url":"https://api.github.com/users/mwalla210/followers","following_url":"https://api.github.com/users/mwalla210/following{/other_user}","gists_url":"https://api.github.com/users/mwalla210/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalla210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalla210/subscriptions","organizations_url":"https://api.github.com/users/mwalla210/orgs","repos_url":"https://api.github.com/users/mwalla210/repos","events_url":"https://api.github.com/users/mwalla210/events{/privacy}","received_events_url":"https://api.github.com/users/mwalla210/received_events","type":"User","site_admin":false},"labels":[{"id":34328464,"url":"https://api.github.com/repos/appium/appium/labels/Android","name":"Android","color":"ADFF2F","default":false},{"id":474876872,"url":"https://api.github.com/repos/appium/appium/labels/NeedsInfo","name":"NeedsInfo","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-20T17:40:29Z","updated_at":"2017-08-02T18:30:15Z","closed_at":null,"body":"## The problem\r\n\r\nInspector for Appium GUI incorrectly highlights Google Sign On process in React Native application, tap unresponsive, and Appium-Python-Client is unable to `set_value()` for parts of process.\r\n\r\n## Environment\r\n\r\n* Desktop OS/version used to run Appium: Mac 10.12.4\r\n* Mobile platform/version under test: Android\r\n* Real device or emulator/simulator: Nexus 5X running 6.0.0\r\n* Application type: React Native app\r\n* Appium CLI or Appium.app|exe: Appium (1.0.0) & Appium-Python-Client (0.24)\r\n\r\n## Details\r\n\r\nUnable to send text to EditText box in Android or execute a click on a button (same page). These boxes are part of the Google Sign In process (two pages: one for email & next button, one for password & sign in button). **This issue is not experienced on iOS for the same process.**\r\n\r\nPossibly related - GUI highlighting in Inspector is incorrect/missing for Password EditText, Sign In button, and Forgot Password View (on _just_ this page). The Inspector is unsuccessful on tap for \"Sign in\" button & \"Forgot my password\" view.\r\n\r\n![screen shot 2017-04-20 at 11 49 35 am](https://cloud.githubusercontent.com/assets/18332047/25239949/94b521c6-25bf-11e7-9544-9719f8958257.png)\r\n![screen shot 2017-04-20 at 11 49 44 am](https://cloud.githubusercontent.com/assets/18332047/25239950/94b62d14-25bf-11e7-836a-e3cc7bc71494.png)\r\n\r\nUsing Python/Appium-Python-Client, script is able to (see below for code)\r\n* Script an entry into the Email EditText (prior screen)\r\n* Click the \"Next\" button (prior screen)\r\n\r\n```\r\n# Enter email\r\nemail = self.driver.find_element_by_accessibility_id(\"Email or phone\")\r\nself.assertEqual(email.get_attribute(\"name\").strip(), \"Email or phone\")\r\nself.driver.set_value(email, emailstr)\r\nbutton = self.driver.find_element_by_xpath(\"//android.view.View[4]/android.widget.Button[1]\")\r\nself.assertEqual(button.get_attribute(\"name\").strip(), \"Next\")\r\nbutton.click()\r\nself.driver.implicitly_wait(60)\r\n```\r\n\r\nIt _fails_ on:\r\n* Script an entry into the Password EditText (no text entered into field and nothing printed)\r\n  * It is _finding_ the EditText (see verification in code)\r\n* Click the \"Sign in\" button\r\n  * It is _finding_ the button (see verification in code) but `click()` execution does nothing\r\n\r\n```\r\n# Enter password\r\npw = driver.find_element_by_xpath(\"//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[1]//*[2]//*[1]//*[1]//*[4]//*[3]\")\r\nprint(\"Find password box succeeded\")\r\npw.set_text(d[\"tassl_test_password\"])\r\n#driver.set_value(pw, d[\"tassl_test_password\"])\r\nprint(\"Password: \" + pw.get_attribute(\"text\"))\r\n```\r\nMy logs will show the following after execution:\r\n```\r\nFind password box succeeded\r\nPassword: \r\n```\r\nClick \"Sign in\"\r\n```\r\nbutton = self.driver.find_element_by_accessibility_id(\"Sign in\")\r\nbutton.click()\r\n```\r\n\r\n## Link to Appium logs\r\n\r\nSample of trying to enter password (hidden) & click \"Sign in\" in Appium.app Inspector\r\nhttps://gist.github.com/mwalla210/f38f943c5be65981780ebd94d71eb75c\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/319758484","html_url":"https://github.com/appium/appium/issues/8299#issuecomment-319758484","issue_url":"https://api.github.com/repos/appium/appium/issues/8299","id":319758484,"user":{"login":"mwalla210","id":18332047,"avatar_url":"https://avatars3.githubusercontent.com/u/18332047?v=4","gravatar_id":"","url":"https://api.github.com/users/mwalla210","html_url":"https://github.com/mwalla210","followers_url":"https://api.github.com/users/mwalla210/followers","following_url":"https://api.github.com/users/mwalla210/following{/other_user}","gists_url":"https://api.github.com/users/mwalla210/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalla210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalla210/subscriptions","organizations_url":"https://api.github.com/users/mwalla210/orgs","repos_url":"https://api.github.com/users/mwalla210/repos","events_url":"https://api.github.com/users/mwalla210/events{/privacy}","received_events_url":"https://api.github.com/users/mwalla210/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T18:30:15Z","updated_at":"2017-08-02T18:30:15Z","body":"Normally when I can switch to a webview, I see the following printed for contexts:\r\n`[u'NATIVE_APP', u'WEBVIEW_com.android.browser', u'WEBVIEW_com.tassl.android']`\r\nHowever, at this time, when I print contexts, the only ones are:\r\n`[u'NATIVE_APP', u'WEBVIEW_com.android.browser']`"}}
{"actor":{"display_login":"mwalla210"}}