使用Selenium WebDriver在PortableApps上运行Chrome失败

3

我有一个C# Selenium项目,想要运行从这里下载的便携式Chrome。

我的chromeOptions如下:

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"));

但是当我运行测试时,Chrome会打开并显示如下内容:

screenshot

(通知上显示“无法登录 %EXTENSIONNAME%,单击重新加载”)

chrome_debug.log 没有错误。

我做错了什么?我该如何找出问题所在?

1个回答

1
这可能会对你有所帮助 - Stackoverflow post 此外,你的CRX文件应该作为一个文件添加,而不仅仅是路径。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接