Skip to content

Selenium Base doesn't open Chrome tab in a Ubuntu VM (VMware) #2477

Closed
@S2001B

Description

@S2001B

I have a problem when i run a script in Ubuntu VM to open a Chrome tab with Selenium Base. I am not sure if the problem is that it defaults to a headless state or it actually doesn't run Chrome properly. This is the script I ran :

from seleniumbase import Driver

with Driver(uc=True) as driver:
driver.get("https://www.example.com")
driver.sleep(5)

When I run the script and open my System Monitor in Ubuntu in my VM, I can see that Chrome starts running in the background, and it indeed stops working after the script is finished.

When I run the same script in Windows, it works perfectly and the Chrome tab is visible. Could anyone please tell my why is that.

My Ubuntu is the newest LTS version and I use the latest Chrome version. I am also using the latest VMware version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP Modeinvalid usageYou may need to change what you're doing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions