Is there any way to record a video of website using headless Chrome?

Mikhail Novikov picture Mikhail Novikov · Jan 15, 2018 · Viewed 7.7k times · Source

I know there is a way to make screenshots, using many available APIs, such as Puppeteer

https://github.com/GoogleChrome/puppeteer

but what about recording videos? my goal is to capture a CSS animation into an mp4 file.

Or am i doing it all wrong, are there better tools for that on the server side?

Answer

Luke Robertson picture Luke Robertson · Apr 12, 2018

https://www.npmjs.com/package/puppeteer-recorder

Something like this can work, it takes lots of screenshots and stitches them together