Forums

Selenium working but can't get SeleniumBase to work

Hi, I got Selenium to work but I need to use SeleniumBase (for undetected chromedriver mode) and I can't get it to work, just get this error:

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:9222

My code looks like this:

from seleniumbase import Driver
driver = Driver(headless=True, uc=True)
driver.get(url)

I think I have the newest versions of everything but I'm a noob so I'm probably doing something dumb. Any help would be greatly appreciated!

Try to follow an example here https://help.pythonanywhere.com/pages/selenium

I followed that and Selenium is working fine, but SeleniumBase does not work

What is SeleniumBase?