pydoll icon indicating copy to clipboard operation
pydoll copied to clipboard

[Feature Request]: Connect to browser using the cdp

Open sunil-karki opened this issue 8 months ago • 3 comments

Checklist before requesting

  • [x] I have searched for similar feature requests and didn't find a duplicate.
  • [x] 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

sunil-karki avatar Apr 15 '25 10:04 sunil-karki

Checklist before requesting

  • [x] I have searched for similar feature requests and didn't find a duplicate.[x] 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

There is already an open discussion requesting this feature.

#106

cleitonleonel avatar Apr 15 '25 12:04 cleitonleonel

@cleitonleonel is there any update on this?

RajipUpreti avatar May 06 '25 08:05 RajipUpreti

Looking forward to its arrival.

frank9306 avatar May 29 '25 08:05 frank9306

@cleitonleonel is there any update on this?

RajipUpreti avatar Aug 12 '25 06:08 RajipUpreti

@cleitonleonel is there any update on this?

RajipUpreti avatar Aug 21 '25 06:08 RajipUpreti

+1, would be super useful for us

lhluo avatar Aug 22 '25 02:08 lhluo

Hey guys, this feature will come in the next release :)

thalissonvs avatar Aug 22 '25 06:08 thalissonvs