【发布时间】:2018-04-17 14:05:25
【问题描述】:
我尝试下载我的 Chrome 识别为恶意或有可能损害我的 PC 的“.cert”文件。是否有可能禁用以下框: Popup Box。 我已经搜索并尝试了很多可能的解决方法或解决方案,但到目前为止都没有奏效。我的 Chromeoptions 是这样的:
var chromeOptions = new ChromeOptions();
chromeOptions.AddUserProfilePreference("download.default_directory", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
chromeOptions.AddUserProfilePreference("download.prompt_for_download", false);
chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true");
chromeOptions.AddUserProfilePreference("download.directory_upgrade", true);
chromeOptions.AddUserProfilePreference("safebrowsing.enabled", true);
我正在使用以下 Nuget 包:
- Selenium WebDriver 版本 3.9.1
- Selenium.Chrome.Webdriver 2.37 版
最好的问候, 康迪
【问题讨论】:
-
不要使用自签名证书或将签名者添加到受信任的根存储库。
-
这不是我的选择,因为我的应用程序是 VPN Server 的测试自动化,它会在每次安装后生成自签名证书,因此每次设置后签名者都会更改。
-
您是说不能将从受信任的来源(Verisign、GoDaddy 等)生成的证书添加到生成不相关的自签名证书的站点吗?
-
对不起,我刚看到图片。我不认为这与网站 SSL 证书有关。
-
您是否尝试将证书添加到 .ZIP 文件中?
标签: c# selenium selenium-chromedriver