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

no command Network.setUserAgentOverride #28

Closed
SABERYJS opened this issue Feb 25, 2025 · 2 comments
Closed

no command Network.setUserAgentOverride #28

SABERYJS opened this issue Feb 25, 2025 · 2 comments

Comments

@SABERYJS
Copy link

according to chromedevtools https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-setUserAgentOverride

@kenshaw
Copy link
Member

kenshaw commented Feb 25, 2025

This is marked as "redirected" (ie an alias) in the PDL to emulation.setUserAgentOverride call.

https://pkg.go.dev/github.com/chromedp/cdproto/emulation#SetUserAgentOverride

@kenshaw kenshaw closed this as completed Feb 25, 2025
@kenshaw
Copy link
Member

kenshaw commented Feb 25, 2025

@SABERYJS I find it best to ignore the domain, and just grep for the command I'm looking for in the cdproto source tree:

/cdproto$ grep -r -n setUserAgent *
emulation/emulation.go:980:// See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setUserAgentOverride
emulation/emulation.go:1010:// Do executes Emulation.setUserAgentOverride against the provided context.
emulation/emulation.go:1071:    CommandSetUserAgentOverride              = "Emulation.setUserAgentOverride"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants