开发者

Selenium Webdriver SSL Certificate Hostname Mismatch Problem

开发者 https://www.devze.com 2023-03-23 14:08 出处:网络
I have recently run into problems using the .NET version of Selenium Webdriver to run tests against a website running in a test environment where the SSL certificate does not match the hostname it’s

I have recently run into problems using the .NET version of Selenium Webdriver to run tests against a website running in a test environment where the SSL certificate does not match the hostname it’s served from.

To make Firefox accept the SSL certificate while it is controlled by Selenium, I have tried using firefoxProfile.SetPreference("browser.ssl_override_behavior", 1) and firefoxProfile.AcceptUntrustedCertificates but have not been 开发者_Go百科successful.

Is there any other way I can resolve this problem?

Thanks in advance to anyone who can help,

Brett


the way we got around this was hacking local hosts file...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号