firefox-devtools / bidi-har-export

Experimental module to compile WebDriver BiDi network events as a HAR file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for response body

n2o1988 opened this issue · comments

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.

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 w3c/webdriver-bidi#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).

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