How to get network request
servonlewis opened this issue · 2 comments
Hello all,
Is there a way to get a list of all network request on a webpage?
My main goal is to extract a specific request's header value.
Not directly in selenium 3.x, but have a look at CDP (Chrome Devtools Protocol) which allows you to do this in Chromium-based browsers: https://chromedevtools.github.io/devtools-protocol/
I believe there may also be support in Firefox for CDP, via the RemoteProtocol: https://wiki.mozilla.org/WebDriver/RemoteProtocol
Selenium 4.x will also support this particular feature, though I'm not yet sure if it will use CDP or whether the WebDriver spec is being updated (I suspect it's CDP). There is some CDP support in thirtyfour
already, but there's still a lot that could be added to make it better. Also see this issue which may be related: #55
Duplicate of #55