google-chrome Headless browsing Taking screenshots


Example

The following will produce a PNG image in the current directory of the loaded page.

chrome --headless --screenshot https://stackoverflow.com