-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Connect to running chrome with "--remote-debugging-port=55745" #3525
-
I want to connect Seleniumbase in cdp mode with 1 running chrome window, my code:
class MyUcTest(BaseCase): def test_uc(self): self.driver = Driver(uc_cdp=True, chromium_arg=f"--remote-debugging-port={port}") self.driver.get(urlTarget) return self.driver
I cannot connect to the running window and receive the following error message:
selenium.common.exceptions.WebDriverException: Message: unknown error: failed to close window in 20 seconds (Session info: chrome=131.0.6778.205) Stacktrace: GetHandleVerifier [0x00007FF66DC56F15+28773] (No symbol) [0x00007FF66DBC2600] (No symbol) [0x00007FF66DA58FAA] (No symbol) [0x00007FF66DA366DD] (No symbol) [0x00007FF66DA36755] (No symbol) [0x00007FF66DAE8B47] (No symbol) [0x00007FF66DAD7210] (No symbol) [0x00007FF66DA9FF5E] (No symbol) [0x00007FF66DAA11E3] GetHandleVerifier [0x00007FF66DFA425D+3490733] GetHandleVerifier [0x00007FF66DFBBA43+3586963] GetHandleVerifier [0x00007FF66DFB147D+3544525] GetHandleVerifier [0x00007FF66DD1C9DA+838442] (No symbol) [0x00007FF66DBCD04F] (No symbol) [0x00007FF66DBC9614] (No symbol) [0x00007FF66DBC97B6] (No symbol) [0x00007FF66DBB8CE9] BaseThreadInitThunk [0x00007FF90CF2259D+29] RtlUserThreadStart [0x00007FF90E6EAF38+40]
Please help me solve this problem
Beta Was this translation helpful? Give feedback.
All reactions
The code for taking control of existing Chrome browsers via the remote-debugging-port
is here:
Replies: 1 comment
-
The code for taking control of existing Chrome browsers via the remote-debugging-port
is here:
Beta Was this translation helpful? Give feedback.