Reputation: 26878
Chrome Devtools has a "command menu" (Ctrl+Shift+p) which offers the ability to take a screenshot of the site / selected node. Is there a way to access this functionality through the devtools console?
Upvotes: 5
Views: 2802
Reputation: 25957
Is there a way to access this functionality through the devtools console?
DevTools tech writer here. To answer your question narrowly, no, this is not possible.
Puppeteer is a good solution for automated screenshots.
https://github.com/GoogleChrome/puppeteer/blob/v1.3.0/docs/api.md#pagescreenshotoptions
Upvotes: 5