[QUESTION] Can I connect to an existing browser through cdp using nodriver like in playwright connect_over_cdp? #2214
Replies: 1 comment 1 reply
-
Absolutely, you can make that work. I've actually done something similar. When Selenium Grid 4 spins up a Chrome session, it exposes a WebSocket endpoint via the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My goal is to spawn a browser with selenium grid, use the websocket url and connect over cdp (that way I could leverage the nodriver browser patch and the selenium grid infraestructure), is that posible or that could be implemented?
Notice that i am not refering to connecting through the debbuging port, i want to connect through a websocket url:
ws://localhost:4444/session/1234567890abcdef/se/command
Take a look to connect_over_cdp method here:
https://playwright.dev/python/docs/api/class-browsertype
Thanks
Beta Was this translation helpful? Give feedback.
All reactions