Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Connect to running chrome with "--remote-debugging-port=55745" #3525

Answered by mdmintz
TraDepBoVe asked this question in Q&A
Discussion options

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

You must be logged in to vote

The code for taking control of existing Chrome browsers via the remote-debugging-port is here:

#3354 (comment)

Replies: 1 comment

Comment options

The code for taking control of existing Chrome browsers via the remote-debugging-port is here:

#3354 (comment)

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /