Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Chrome from PortableApps with Selenium WebDriver fails

I've got C# Selenium project and want to run portable Chrome downloaded from here.

My chromeOptions are:

chromeOptions.BinaryLocation = Path.GetFullPath("C:\", "tests.browsers", "windows", "chrome", "GoogleChromePortable.exe"));
chromeOptions.AddArgument("--enable-logging");
chromeOptions.AddArgument("--v=1");
chromeOptions.AddExtension(Path.Combine("path", "to", "kontur-plugin.crx"));

But when I run the test, Chrome opens and shows this:

screenshot

(notifications say "Failed to login %EXTENSIONNAME%, click to load it once again)

chrome_debug.log contains no errors.

What am I doing wrong? How can I figure out what is the problem with?

like image 299
michaeluskov Avatar asked Nov 24 '25 18:11

michaeluskov


1 Answers

this might help you - Stackoverflow post

also, your CRX file should add as a file, not just the path.

like image 116
Alin Stelian Avatar answered Nov 27 '25 01:11

Alin Stelian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!