Skip to content

[Feature Request]: Connect to browser using the cdp #119

@sunil-karki

Description

@sunil-karki

Checklist before requesting

  • I have searched for similar feature requests and didn't find a duplicate.
  • I have checked the documentation to confirm this feature doesn't already exist.

Problem Statement

I want to connect to existing browser session and integrating with browsers running in different environments (Docker, remote machines).

By this, i would be able to share browser instances between multiple scripts using this pydoll.

However, looks like this is not supported in the pydoll.

Proposed Solution

I want to have similar to connect_over_cdp() method similar to Playwright's implementation that would accept a CDP websocket URL (e.g., ws://localhost:9222/browser/...)

For example :
async with Chrome() as b: browser = await b.connect_over_cdp("wss://localhost:9222") page = await browser.get_page()

Alternatives Considered

I looked at the docs, didn't find something similar

Additional Context

No response

Importance

Important

Contribution

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions