3

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?

Mate Mrše
  • 7,997
  • 10
  • 40
  • 77
michaeluskov
  • 1,729
  • 7
  • 27
  • 53

1 Answers1

1

this might help you - Stackoverflow post

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

Alin Stelian
  • 861
  • 1
  • 6
  • 16