{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/1019","repository_url":"https://api.github.com/repos/facebook/WebDriverAgent","labels_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/1019/labels{/name}","comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/1019/comments","events_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/1019/events","html_url":"https://github.com/facebook/WebDriverAgent/issues/1019","id":373847952,"node_id":"MDU6SXNzdWUzNzM4NDc5NTI=","number":1019,"title":"unable to clear the textfield","user":{"login":"LayMuiToh","id":39483242,"node_id":"MDQ6VXNlcjM5NDgzMjQy","avatar_url":"https://avatars3.githubusercontent.com/u/39483242?v=4","gravatar_id":"","url":"https://api.github.com/users/LayMuiToh","html_url":"https://github.com/LayMuiToh","followers_url":"https://api.github.com/users/LayMuiToh/followers","following_url":"https://api.github.com/users/LayMuiToh/following{/other_user}","gists_url":"https://api.github.com/users/LayMuiToh/gists{/gist_id}","starred_url":"https://api.github.com/users/LayMuiToh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LayMuiToh/subscriptions","organizations_url":"https://api.github.com/users/LayMuiToh/orgs","repos_url":"https://api.github.com/users/LayMuiToh/repos","events_url":"https://api.github.com/users/LayMuiToh/events{/privacy}","received_events_url":"https://api.github.com/users/LayMuiToh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-25T09:13:10Z","updated_at":"2018-11-26T14:37:43Z","closed_at":null,"author_association":"NONE","body":"I issued the 2 commands, \r\nawait driver.elementByAccessibilityId('textUserName').click();\r\nawait driver.elementByAccessibilityId('textUserName').clear();\r\n\r\nbut the textfield didn't get cleared, also I notice the cursor is placed at the end of the current text value\r\nand causing the new text value to be appended.\r\nhow do I place the cursor at the beginning so that the new text value will replace the current text value.\r\nbut what I really want to do is to clear the existing text using the clear() API command\r\nand then call sendKeys(\"my new text value\")\r\n\r\nappium: 1.9.1\r\nwd: 1.11.1\r\nmacOS: 10.13.6"},"comment":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/comments/441660282","html_url":"https://github.com/facebook/WebDriverAgent/issues/1019#issuecomment-441660282","issue_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/1019","id":441660282,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTY2MDI4Mg==","user":{"login":"gouldingm","id":10194868,"node_id":"MDQ6VXNlcjEwMTk0ODY4","avatar_url":"https://avatars3.githubusercontent.com/u/10194868?v=4","gravatar_id":"","url":"https://api.github.com/users/gouldingm","html_url":"https://github.com/gouldingm","followers_url":"https://api.github.com/users/gouldingm/followers","following_url":"https://api.github.com/users/gouldingm/following{/other_user}","gists_url":"https://api.github.com/users/gouldingm/gists{/gist_id}","starred_url":"https://api.github.com/users/gouldingm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gouldingm/subscriptions","organizations_url":"https://api.github.com/users/gouldingm/orgs","repos_url":"https://api.github.com/users/gouldingm/repos","events_url":"https://api.github.com/users/gouldingm/events{/privacy}","received_events_url":"https://api.github.com/users/gouldingm/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T14:37:43Z","updated_at":"2018-11-26T14:37:43Z","author_association":"NONE","body":"On further investigation of this issue it looks like this is related to the app under test.\r\nThe text we are trying to clear ( or get) is in a shadow element - Shadow Content (User Agent). This element is only viewable in Safari Web Inspector. In a dump of the DOM (by WebDriverAgent) it is not present which I understand is correct for shadow elements. It looks like WebDriverAgent can't see or manipulate this. \r\nApp created with AngularJS and Ionic. "}}
{"actor":{"display_login":"gouldingm"}}