Re:Puppeteer: Headless Chrome Node API
by paulirish on Wednesday August 16, 2017 @03:58PM
(#15030745)
Yes using the `clip` option of screenshot(), you can get these dimensions from an element's getBoundingClientRect().
[ Parent
| on HN ]
full example of screenshoting a DOM element:
https://github.com/GoogleChrome/puppeteer/issues/306#issueco...