{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1588","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1588/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1588/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1588/events","html_url":"https://github.com/webdriverio/webdriverio/issues/1588","id":176467582,"number":1588,"title":"Using WebElement JSON Objects as Selectors","user":{"login":"ChadKillingsworth","id":1247639,"avatar_url":"https://avatars1.githubusercontent.com/u/1247639?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadKillingsworth","html_url":"https://github.com/ChadKillingsworth","followers_url":"https://api.github.com/users/ChadKillingsworth/followers","following_url":"https://api.github.com/users/ChadKillingsworth/following{/other_user}","gists_url":"https://api.github.com/users/ChadKillingsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadKillingsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadKillingsworth/subscriptions","organizations_url":"https://api.github.com/users/ChadKillingsworth/orgs","repos_url":"https://api.github.com/users/ChadKillingsworth/repos","events_url":"https://api.github.com/users/ChadKillingsworth/events{/privacy}","received_events_url":"https://api.github.com/users/ChadKillingsworth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-09-12T19:51:17Z","updated_at":"2017-06-22T17:06:08Z","closed_at":"2016-09-21T06:33:09Z","body":"[Testing elements in Shadow DOM](https://gist.github.com/ChadKillingsworth/d4cb3d30b9d7fbc3fd0af93c2a133a53) has presented new challenges.\n\nI'd like to be able to use WebElement JSON objects as selectors for further actions.\n\n``` js\nvar button = browser.element('button');\nbrowser.click(button);\n\n//Currently you have to use the following:\nbrowser.elementIdClick(button.value.ELEMENT);\n```\n\nWhile this contrived example doesn't show the true need, it makes much more sense when you are finding an element in a shadow tree, then performing some kind of action on that element.\n"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/310442329","html_url":"https://github.com/webdriverio/webdriverio/issues/1588#issuecomment-310442329","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1588","id":310442329,"user":{"login":"ChadKillingsworth","id":1247639,"avatar_url":"https://avatars1.githubusercontent.com/u/1247639?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadKillingsworth","html_url":"https://github.com/ChadKillingsworth","followers_url":"https://api.github.com/users/ChadKillingsworth/followers","following_url":"https://api.github.com/users/ChadKillingsworth/following{/other_user}","gists_url":"https://api.github.com/users/ChadKillingsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadKillingsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadKillingsworth/subscriptions","organizations_url":"https://api.github.com/users/ChadKillingsworth/orgs","repos_url":"https://api.github.com/users/ChadKillingsworth/repos","events_url":"https://api.github.com/users/ChadKillingsworth/events{/privacy}","received_events_url":"https://api.github.com/users/ChadKillingsworth/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T17:06:08Z","updated_at":"2017-06-22T17:06:08Z","body":"> They're not convinced jet that there is enough of a use case besides testing.\r\n\r\nIt should be solved at the selenium/webdriver layer. That's what the Apple dev was saying. For once I tend to agree."}}
{"actor":{"display_login":"ChadKillingsworth"}}