{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/3215","repository_url":"https://api.github.com/repos/angular/protractor","labels_url":"https://api.github.com/repos/angular/protractor/issues/3215/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/3215/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/3215/events","html_url":"https://github.com/angular/protractor/issues/3215","id":154474222,"number":3215,"title":"Feature Request - Take screenshot of a particular element (instead of the whole page)","user":{"login":"ShobanaV","id":5364670,"avatar_url":"https://avatars.githubusercontent.com/u/5364670?v=3","gravatar_id":"","url":"https://api.github.com/users/ShobanaV","html_url":"https://github.com/ShobanaV","followers_url":"https://api.github.com/users/ShobanaV/followers","following_url":"https://api.github.com/users/ShobanaV/following{/other_user}","gists_url":"https://api.github.com/users/ShobanaV/gists{/gist_id}","starred_url":"https://api.github.com/users/ShobanaV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShobanaV/subscriptions","organizations_url":"https://api.github.com/users/ShobanaV/orgs","repos_url":"https://api.github.com/users/ShobanaV/repos","events_url":"https://api.github.com/users/ShobanaV/events{/privacy}","received_events_url":"https://api.github.com/users/ShobanaV/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T12:49:09Z","updated_at":"2016-05-16T18:55:28Z","closed_at":"2016-05-12T18:07:53Z","body":"Hi,\r\n\r\nIs there any way to take screenshot of a particular element (Eg. svg, canvas etc.) in protractor?\r\n\r\nIn my application, I need to compare graph with an expected graph. I want to take screenshot of that particular element inside which the graph is present.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/219513267","html_url":"https://github.com/angular/protractor/issues/3215#issuecomment-219513267","issue_url":"https://api.github.com/repos/angular/protractor/issues/3215","id":219513267,"user":{"login":"henrahmagix","id":1429026,"avatar_url":"https://avatars.githubusercontent.com/u/1429026?v=3","gravatar_id":"","url":"https://api.github.com/users/henrahmagix","html_url":"https://github.com/henrahmagix","followers_url":"https://api.github.com/users/henrahmagix/followers","following_url":"https://api.github.com/users/henrahmagix/following{/other_user}","gists_url":"https://api.github.com/users/henrahmagix/gists{/gist_id}","starred_url":"https://api.github.com/users/henrahmagix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrahmagix/subscriptions","organizations_url":"https://api.github.com/users/henrahmagix/orgs","repos_url":"https://api.github.com/users/henrahmagix/repos","events_url":"https://api.github.com/users/henrahmagix/events{/privacy}","received_events_url":"https://api.github.com/users/henrahmagix/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T18:55:28Z","updated_at":"2016-05-16T18:55:28Z","body":"The documentation suggests that you can call `.takeScreenshot()` on an `ElementFinder`: http://www.protractortest.org/#/api?view=webdriver.WebElement.prototype.takeScreenshot\r\n\r\nShould the `foo` element in that be changed to `browser`?"}}