w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
378 stars 42 forks source link

Support reading request body #748

Open OrKoN opened 4 months ago

OrKoN commented 4 months ago

Related to https://github.com/w3c/webdriver-bidi/issues/747 but for network requests: there should be a way to read the body content of the outgoing requests.

In Puppeteer, the data is exposed via https://pptr.dev/api/puppeteer.httprequest.postdata although there is a more structured interface in CDP postDataEntries https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Request that splits request data into parts.

It would be useful to support reading request data using WebDriver BiDi.