Skip to content

Question regarding add_cdp_listener and clear_cdp_listeners #2758

Answered by mdmintz
oculunto asked this question in Q&A
Discussion options

You must be logged in to vote

Sounds like you're referring to this example: SeleniumBase/examples/uc_cdp_events.py.

Behind the scenes, that really just makes a call to driver.get_log("performance"), which comes from driver.get_log(), defined here: https://github.com/SeleniumHQ/selenium/blob/4b415384eae4ac156353726b473df35540625b88/py/selenium/webdriver/remote/webdriver.py#L1004

I don't really understand how it all works, but the original came from undetected-chromedriver - https://github.com/ultrafunkamsterdam/undetected-chromedriver/blob/0aa5fbe252370b4cb2b95526add445392cad27ba/undetected_chromedriver/__init__.py#L667

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oculunto
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants