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 1 year ago

n2o1988 commented 1 year 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 1 year 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 1 year 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 3 months ago

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

soulgalore commented 1 month ago

Hi, I forgot that we lost that information when we switched from the HAR trigger in Browsertime. Is there a way to actually get the response today through Bidi? I've been heavily using that functionality (but for Chrome) for Wikipedia. It's super useful to have the actual HTML/JavaScript from the time the test were running so I can see exact what code we had at that time.

juliandescottes commented 1 month ago

At the moment we still don't support getting the network response body from BiDi.