{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2290","repository_url":"https://api.github.com/repos/angular/protractor","labels_url":"https://api.github.com/repos/angular/protractor/issues/2290/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2290/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2290/events","html_url":"https://github.com/angular/protractor/issues/2290","id":92195932,"number":2290,"title":"Passing ElementFinder into executeScript()","user":{"login":"alecxe","id":1291983,"avatar_url":"https://avatars.githubusercontent.com/u/1291983?v=3","gravatar_id":"","url":"https://api.github.com/users/alecxe","html_url":"https://github.com/alecxe","followers_url":"https://api.github.com/users/alecxe/followers","following_url":"https://api.github.com/users/alecxe/following{/other_user}","gists_url":"https://api.github.com/users/alecxe/gists{/gist_id}","starred_url":"https://api.github.com/users/alecxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecxe/subscriptions","organizations_url":"https://api.github.com/users/alecxe/orgs","repos_url":"https://api.github.com/users/alecxe/repos","events_url":"https://api.github.com/users/alecxe/events{/privacy}","received_events_url":"https://api.github.com/users/alecxe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/protractor/labels/type:%20feature%20request","name":"type: feature request","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-06-30T20:44:50Z","updated_at":"2016-07-14T18:17:21Z","closed_at":"2016-07-14T18:17:21Z","body":"Would it be possible to avoid calling `getWebElement()` every time there is the need to pass an \"element\" into `executeScript()`?\r\n\r\nFor example, being able to write:\r\n\r\n    var elm = element(by.id(\"test\"));\r\n    browser.executeScript(\"arguments[0].scrollIntoView();\", elm);\r\n\r\ninstead of:\r\n\r\n    var elm = element(by.id(\"test\"));\r\n    browser.executeScript(\"arguments[0].scrollIntoView();\", elm.getWebElement());\r\n\r\nI think this [\"TODO\" line](https://github.com/angular/protractor/blob/6ebc4c3f8b557a56e53e0a1622d1b44b59f5bc04/spec/basic/elements_spec.js#L172) is related to the request:\r\n\r\n    // TODO(juliemr): should be able to do this without the getWebElement call"}}
{"actor":{"display_login":"juliemr"}}