0

enter image description here

Even when I use this code, it opens chrome as a guest user.

1 Answers1

0

As you are in system, you need to pass the name of the WebDriver variant along with the extension, i.e. chromedriver.exe.

So you need to change the line:

driver = webdriver.Chrome(executable_path=r'C:\foo\bar\chromedriver', options=options)

With:

driver = webdriver.Chrome(executable_path=r'C:\foo\bar\chromedriver.exe', options=options)
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352