{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1523","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1523/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1523/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1523/events","html_url":"https://github.com/webdriverio/webdriverio/issues/1523","id":169803727,"number":1523,"title":"custom command not working when written in sync style","user":{"login":"talarari","id":4973087,"avatar_url":"https://avatars.githubusercontent.com/u/4973087?v=3","gravatar_id":"","url":"https://api.github.com/users/talarari","html_url":"https://github.com/talarari","followers_url":"https://api.github.com/users/talarari/followers","following_url":"https://api.github.com/users/talarari/following{/other_user}","gists_url":"https://api.github.com/users/talarari/gists{/gist_id}","starred_url":"https://api.github.com/users/talarari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talarari/subscriptions","organizations_url":"https://api.github.com/users/talarari/orgs","repos_url":"https://api.github.com/users/talarari/repos","events_url":"https://api.github.com/users/talarari/events{/privacy}","received_events_url":"https://api.github.com/users/talarari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-07T16:17:53Z","updated_at":"2016-08-08T22:32:10Z","closed_at":null,"body":"this doesnt work:\r\n```\r\nbrowser.addCommand(\"getWhenVisible\",function(selector,ms,reverse){\r\n          this.waitForVisible(selector,ms,reverse);\r\n         return this.element(selector)\r\n})\r\n```\r\n\r\nthis does:\r\n```\r\nclient.addCommand(\"getWhenVisible\",function async(selector,ms,reverse) {\r\n        return client.waitForVisible(selector, ms, reverse).then(()=> this.element(selector));\r\n    });\r\n```"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/238398287","html_url":"https://github.com/webdriverio/webdriverio/issues/1523#issuecomment-238398287","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1523","id":238398287,"user":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T22:32:10Z","updated_at":"2016-08-08T22:32:10Z","body":"The code looks right. Please be more explicit about the problem. What does not work here?"}}
{"actor":{"display_login":"christian-bromann"}}