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
Google chrome “铬错误”;您正在使用不受支持的命令行标志--“忽略证书错误”;_Google Chrome_Selenium - Fatal编程技术网

Google chrome “铬错误”;您正在使用不受支持的命令行标志--“忽略证书错误”;

Google chrome “铬错误”;您正在使用不受支持的命令行标志--“忽略证书错误”;,google-chrome,selenium,Google Chrome,Selenium,我使用编码的UI在Chrome上测试我的web应用程序。我正在使用编码UI提供的跨浏览器支持 我正在使用以下版本- Visual Studio:2013 selenium dotnet绑定:2.43 当我使用BrowserWindow.CurrentBrowser=“Chrome”在Chrome中启动web应用程序时,Chrome浏览器将打开弹出窗口-“您正在使用不受支持的命令行标志:-忽略证书错误…” 我在网上找到了一些建议,但这些建议似乎是给那些直接使用硒的人的 但是,它们在这里似乎不适用,

我使用编码的UI在Chrome上测试我的web应用程序。我正在使用编码UI提供的跨浏览器支持

我正在使用以下版本-

Visual Studio:2013

selenium dotnet绑定:2.43

当我使用BrowserWindow.CurrentBrowser=“Chrome”在Chrome中启动web应用程序时,Chrome浏览器将打开弹出窗口-“您正在使用不受支持的命令行标志:-忽略证书错误…”

我在网上找到了一些建议,但这些建议似乎是给那些直接使用硒的人的

但是,它们在这里似乎不适用,因为我使用的是编码UI

谁能告诉我如何解决这个问题

问候,,
kvk1985

我在Visual Studio 2013高级更新4中遇到了相同的问题。 chromedriver.exe(2.12)的最新版本为我们解决了这个问题

  • 从2.12目录下载适用的zip文件,网址为
  • 右键单击下载的zip文件
  • 选择“属性”
  • 在“常规”选项卡下,单击“取消阻止”按钮
  • 现在解压这两个文件并将内容复制到以下路径。复制chromedriver.exe的现有版本
  • “%ProgramFiles%\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components”(适用于32位计算机)

    “%ProgramFiles(x86)%\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components”(适用于64位计算机)


    再次使用BrowserWindow.CurrentBrowser=“Chrome”启动Chrome,消息应该会消失。

    请使用下面的代码,它对我有效

      IWebDriver driver;
            ChromeOptions options = new ChromeOptions();
            options.AddArguments("--disable-extensions");
            options.AddArgument("test-type");
            options.AddArgument("--ignore-certificate-errors");
            options.AddArgument("no-sandbox");
            driver = new ChromeDriver(options);
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl("https://ahn-qa2.aon.com/home.aspx");
    

    在一天结束时,解决这个问题的方法是通过参数
    --测试类型
    除了
    --忽略证书错误
    谢谢,对于chromedriver 2.12,这个问题看不到。请也解释一下你的答案。