Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get network request #76

Closed
servonlewis opened this issue Nov 2, 2021 · 2 comments
Closed

How to get network request #76

servonlewis opened this issue Nov 2, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@servonlewis
Copy link

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.

@stevepryde
Copy link
Collaborator

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

@stevepryde stevepryde added the help wanted Extra attention is needed label Nov 4, 2021
@stevepryde
Copy link
Collaborator

Duplicate of #55

@stevepryde stevepryde marked this as a duplicate of #55 Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants