Can a har file be programmatically generated from headless chrome using Puppeteer?
I would like to control a headless chrome instance using puppeteer, taking snapshots and clicking on various page elements, while capturing a har file. Is this possible? I have looked at the API but haven't found anything useful. There is no HAR generator helper in Puppeteer. But you can use chrome-har to generate HAR file. const fs = require('fs'); const { promisify } = require('util'); const puppeteer = require('puppeteer'); const { harFromMessages } = require('chrome-har'); // list of events for converting to HAR const events = []; // event types to observe const observe = [ 'Page