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.
Answered by
mdmintz
Feb 10, 2022
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(
"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.
1 reply
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: