Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Connect to wsendpoint #2983

Closed
GJayLG opened this issue Aug 1, 2024 · 1 comment
Closed

How to Connect to wsendpoint #2983

GJayLG opened this issue Aug 1, 2024 · 1 comment
Labels
question Someone is looking for answers UC Mode Undetected Chromedriver Mode (--uc)

Comments

@GJayLG
Copy link

GJayLG commented Aug 1, 2024

How is it possible to connect to wsendpoint? I looked through all the issues and did not find the answer. Could you tell me how this can be done with SB

with SB(uc=True) as sb:

ws://127.0.0.1:6338/devtools/browser/aa87c815-f980-406a-be69-19308bd607e8

@mdmintz mdmintz added question Someone is looking for answers UC Mode Undetected Chromedriver Mode (--uc) labels Aug 1, 2024
@mdmintz
Copy link
Member

mdmintz commented Aug 1, 2024

It looks like you're trying to connect to an existing browser. That's already how UC Mode works: It spins up a regular Chrome browser, then attaches Selenium to it via the remote-debugging-port. For setting options that aren't already included, you can pass those into chromium_arg, which takes a comma-separated list, no spaces.

chromium_arg=None, # "ARG=N,ARG2" (Set Chromium args, ","-separated.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Someone is looking for answers UC Mode Undetected Chromedriver Mode (--uc)
Projects
None yet
Development

No branches or pull requests

2 participants