Chrome headless mode sample
My chrome was updated to v59 yesterday and it supports long-awaited headless mode. At once I tried it seeing Getting Started.
I came to know there are two useful modules to manage Google Chrome.
- lighthouse as launcher
- chrome-remote-interface to control chrome in headless mode
I wrote two samples with async/await seeing some samples on the page.
https://github.com/tmtk75/chrome-headless-sample
This contains samples to evaluate arbitrary JavaScript and get the result, handle events to sent requests, and etc.