fysh711426 / UndetectedChromeDriver

GNU General Public License v3.0
172 stars 65 forks source link

Not found chrome.exe. #16

Open GodStar88 opened 2 years ago

GodStar88 commented 2 years ago

Hello, I got an issue "Not found chrome.exe."

var driverExecutablePath = Path.GetDirectoryName(Application.ExecutablePath) + @"\chromedriver.exe"; var driver = UndetectedChromeDriver.Create( driverExecutablePath: driverExecutablePath);

How can i fix that?

fysh711426 commented 2 years ago

If your chrome is not in default directory, you can use browserExecutablePath to set.

GodStar88 commented 2 years ago

Thanks, That is working well. I have a problem in ChromeOptions

image

That doesn't work

GodStar88 commented 2 years ago

invalid argument: entry 0 of 'firstMatch' is invalid from invalid argument: cannot parse capability: goog:chromeOptions from invalid argument: unrecognized chrome option: excludeSwitches

fysh711426 commented 2 years ago

Now only AddArgument is sure to work fine.

AddExtensions you can try this.
#issuecomment-1173221184

AddUserProfilePreference you can try this.
#prefs-example

GodStar88 commented 2 years ago

Thanks, I will try

GodStar88 commented 2 years ago

image image Hello, I can't add crx, How can i do?

fysh711426 commented 2 years ago

To unzip, use directory path. https://github.com/fysh711426/UndetectedChromeDriver/issues/9#issuecomment-1159780698

GodStar88 commented 2 years ago

Thanks, works now, so we can't use crx file?

fysh711426 commented 2 years ago

Yes, I haven't found a way to use crx.

GodStar88 commented 2 years ago

Ok, You are best