firefox-devtools / bidi-har-export

Experimental module to compile WebDriver BiDi network events as a HAR file
7 stars 3 forks source link

SeleniumBiDiHarRecorder should have an option to save as file #5

Open juliandescottes opened 1 year ago

juliandescottes commented 1 year ago

Consumers could simply provide a path and the har would be saved as a file.

We can either make that an option in stopRecording or add a dedicated method. The only downside with a dedicated method is that stopRecording marks the end of the recording and having a different method might make it harder to follow the state of the recorder.