firefox-devtools / bidi-har-export

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

Support for response body #22

Open n2o1988 opened 11 months ago

n2o1988 commented 11 months ago

Hi @juliandescottes, first of all thank you so much for this tool! I was wondering if there are plans to include response bodies in the generated har files? Not sure if that's something that's even supported by the BiDi standard today but I thought I'd ask.

I've been following developments on https://bugzilla.mozilla.org/show_bug.cgi?id=1744483 and I'm in a similar position as the user who opened the bug, where I need to get access to Network logs as part of a selenium-based automation test.

juliandescottes commented 11 months ago

Hi, thanks for reaching out!

At the moment response bodies are not in the BiDi spec but that might change in the future. There's interest to expose response bodies for network interception scenarios, see https://github.com/w3c/webdriver-bidi/issues/541 . When this happens, there should at least be an option to add response bodies to network events (and then we can add it here).

n2o1988 commented 11 months ago

Hi Julian, thanks a million for the response! I'll look forward to the specs to incorporate that option in the future 👌

bgrins commented 1 month ago

This would be nice. I see https://github.com/w3c/webdriver-bidi/issues/747 as well.