-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support for Chrome Dev Protocols #1208
Answered
by
mdmintz
taruntechno
asked this question in
Q&A
-
Does seleniumbase supports chrome dev protocols for eg . View console logs and get network traffic and performance.
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
mdmintz
Feb 10, 2022
Hi @taruntechno , yes, as seen from examples such as https://github.com/seleniumbase/SeleniumBase/blob/master/examples/user_agent_test.py , you can run CDP commands using self.driver.execute_cdp_cmd()
. Example:
self.driver.execute_cdp_cmd( "Network.setUserAgentOverride", { "userAgent": "Mozilla/5.0 " "(Nintendo Switch; WifiWebAuthApplet) " "AppleWebKit/606.4 (KHTML, like Gecko) " "NF/6.0.1.15.4 NintendoBrowser/5.1.0.20393" } )
Replies: 1 comment 1 reply
-
Hi @taruntechno , yes, as seen from examples such as https://github.com/seleniumbase/SeleniumBase/blob/master/examples/user_agent_test.py , you can run CDP commands using self.driver.execute_cdp_cmd()
. Example:
self.driver.execute_cdp_cmd( "Network.setUserAgentOverride", { "userAgent": "Mozilla/5.0 " "(Nintendo Switch; WifiWebAuthApplet) " "AppleWebKit/606.4 (KHTML, like Gecko) " "NF/6.0.1.15.4 NintendoBrowser/5.1.0.20393" } )
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment