HMaker / python-cdp

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

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

Open jonaspiresnt opened 2 weeks ago

jonaspiresnt commented 2 weeks ago

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

jonaspiresnt commented 2 weeks 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'])