You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't get cdp.dom.get_document() when network.enable() #16
This probably happens because the CDP API doesn't match the wrapper layer of pycdp. This is generally fixed by updating the wrappers (see Updating built-in CDP wrappers section in the README) - which regenerates the python files in pycdp/cdp. So you still need to fork the repo, or locally install it, and then update the python code.
Activity
jonaspiresnt commentedon Aug 28, 2024
I made it work by editing the pycdp/cdp/util.py file, in the parse_json_event method.
if json['method'] != 'Network.policyUpdated': return _event_parsers[json['method']].from_json(json['params'])RazorBest commentedon Aug 10, 2025
This probably happens because the CDP API doesn't match the wrapper layer of pycdp. This is generally fixed by updating the wrappers (see
Updating built-in CDP wrapperssection in the README) - which regenerates the python files in pycdp/cdp. So you still need to fork the repo, or locally install it, and then update the python code.