fysh711426 / UndetectedChromeDriver

GNU General Public License v3.0
166 stars 61 forks source link

I noticed that the names you set seem to be wrong including "PROGRAMFILES", "PROGRAMFILES(X86)", "LOCALAPPDATA" #4

Open vinzh05 opened 2 years ago

vinzh05 commented 2 years ago

285002065_3213238808957709_381514357819487867_n Could that be the cause?

fysh711426 commented 2 years ago

The code will generate paths according to environment variables.
If your chrome is not in these paths, you can use browserExecutablePath to set.

1654307327160

var yourBrowserPath = 
    @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";

using var driver = UndetectedChromeDriver.Create(
    options: options,
    driverExecutablePath: driverExecutablePath,
    browserExecutablePath: yourBrowserPath);