使用Selenium WebDriver从PortableApps运行Chrome失败
我有一个C#Selenium项目,想运行从下载的便携式Chrome 我的使用Selenium WebDriver从PortableApps运行Chrome失败,selenium,google-chrome,selenium-webdriver,selenium-chromedriver,portability,Selenium,Google Chrome,Selenium Webdriver,Selenium Chromedriver,Portability,我有一个C#Selenium项目,想运行从下载的便携式Chrome 我的色度选项是: chromeOptions.BinaryLocation = Path.GetFullPath("C:\", "tests.browsers", "windows", "chrome", "GoogleChromePortable.exe")); chromeOptions.AddArgument("-
色度选项是:
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打开并显示:
(通知显示“未能登录%EXTENSIONNAME%,请单击以再次加载它)
chrome\u debug.log
不包含任何错误
我做错了什么?我如何找出问题所在?这可能会帮助您-
此外,您的CRX文件应添加为文件,而不仅仅是路径