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

Chrome never opens with SB() in uc mode #3951

Closed
Labels
UC Mode / CDP ModeUndetected Chromedriver Mode / CDP Mode can't reproduceWe tried to see what you saw, but didn't invalid usageYou may need to change what you're doing questionSomeone is looking for answers
@yokotsumo

Description

OS: Debian 13
Python: 3.11.13
Google Chrome: 139.0.7258.138
Error messages: None

I have never been able to launch a real chrome browser with SB using google chrome and undetected_chromedriver, either using CLI, VSCode or Eclipse.
I tested it for instance with this code:
from seleniumbase import SB

with SB(test=True, uc=True) as sb:
sb.open("https://google.com/ncr")
sb.type('[title="Search"]', "SeleniumBase GitHub page\n")
sb.click('[href*="github.com/seleniumbase/"]')
sb.save_screenshot_to_logs() # ./latest_logs/
print(sb.get_page_title())

The only time I managed to open a browser was with python CLI and setting the browser as firefox. Even with firefox, no browser was opened in VSCode or Eclipse.

I have launched it in test mode and I get screenshots that proves that the browser is working, but in headless mode only.

Was am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP Mode can't reproduceWe tried to see what you saw, but didn't invalid usageYou may need to change what you're doing questionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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