Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paulirish
· 9y ago · 0 comments
Yes using the `clip` option of screenshot(), you can get these dimensions from an element's getBoundingClientRect().
Comments
[–]
ebidel
9y ago
full example of screenshoting a DOM element:
https://github.com/GoogleChrome/puppeteer/issues/306#issueco...
[–]
borplk
9y ago
Thank you. That's perfect.