seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
5k stars 942 forks source link

How to connect to an open browser? #2994

Closed radovs3245 closed 1 month ago

radovs3245 commented 1 month ago

Hello. I didn’t find a specific answer in the topics, can you still connect to an existing browser via 127.0.0.1:port or ws://127.0.0.1:27869/devtools/browser/5c39ae97-e11f-46da-9186-ff6d34ee022b? I tried this with SB(uc=True, chromium_arg=f"remote-debugging-port=127.0.0.1:{port}") as sb: and with SB(uc=True, chromium_arg=remote-debugging-port="ws://127.0.0.1:27869/devtools/browser/5c39ae97-e11f-46da-9186-ff6d34ee022b") as sb: It opens its browser, but does not connect to the open one. Please give an example of how to connect.

mdmintz commented 1 month ago

Duplicate of https://github.com/seleniumbase/SeleniumBase/issues/2983#issuecomment-2263550191