HMaker / python-cdp

Python client and types generator for the Chrome DevTools Protocol (CDP)
MIT License
57 stars 18 forks source link

Can't get cdp.dom.get_document() when network.enable() #16

Open jonaspiresnt opened 2 months ago

jonaspiresnt commented 2 months ago

In Chrome 128 cdp.dom.get_document() freezes when network.enable().

jonaspiresnt commented 2 months ago

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'])