Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 416 Bytes

README.md

File metadata and controls

16 lines (8 loc) · 416 Bytes

Chrome Headless Demo

A simple Node.js script that interacts with an instance of Chrome headless in order to take a screenshot.

To start Chrome headless:

$ chrome --headless --disable-gpu --remote-debugging-port=9222 https://example.com/

To run the script:

$ node index.js

The screenshot will be named screenshot.png and saved in the current directory.

Video Guide