Skip to content

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

Open

Description

@jonaspiresnt

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

Activity

  1. jonaspiresnt commented on Aug 28, 2024

    @jonaspiresnt
    Author

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

  2. RazorBest commented on Aug 10, 2025

    @RazorBest
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions