Is there a way to enable simulated device mode or emulated print media mode in headless Chrome in Linux?
It can be done manually in DevTools like so:
The goal is to take a full-page screenshot in emulated print media mode without injecting or modifying any CSS. I'm already able take screenshots of web pages via Node.js, but not in emulated print media mode. I've searched, but am also unable to find a helpful CLI switch.
How to do this programmatically via CLI or Node.js? Is it even possible?
via Drakes
No comments:
Post a Comment