Oak
Oak

Reputation: 26878

Can I take a screenshot from the devtools console?

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

Answers (1)

Kayce Basques
Kayce Basques

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

Related Questions