Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Selenium WebDriver从PortableApps运行Chrome失败_Selenium_Google Chrome_Selenium Webdriver_Selenium Chromedriver_Portability - Fatal编程技术网

使用Selenium WebDriver从PortableApps运行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("-

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

我的
色度选项是:

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文件应添加为文件,而不仅仅是路径