save har dump of network responses while in headless mode
hello.. i am trying to set up some performance monitoring of various HLS/DASH streams using firefox in headless mode. i'll run firefox in various cloud locations at 45s intervals, then kill/stop the session.
something like ++
firefox --devtools --headless 'moz-extension://8ac79fd1-0657-4e29-90c2-4715fe801fec/index.html#http://fqdn/path-to-playlist.m3u8' & sleep 45 killall firefox ++
my question is, how do i automatically dump the HAR file generated from the devtool network pane? i can generate the HAR file with no problems if i have to interact with the browser.. since these firefox instances are more for monitoring, i cant babysit and click 'save HAR' after each run. so basically i want to automate this step of dumping the firefox network monitor stats into a har file.
see attached for the devtool panel in question.