【发布时间】:2017-05-08 20:32:43
【问题描述】:
我正在使用 webdriver V 3.0.1 和 firefox V 46。我正面临“您的连接不安全”的错误。
请帮助我克服这个问题。您可以在下面找到我的代码
System.setProperty("webdriver.gecko.driver","D:\\Software\\Webdriver\\gecko new\\geckodriver-v0.11.1-win64\\geckodriver.exe");
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("network.proxy.type", 0);
profile.setAcceptUntrustedCertificates(true);
profile.setAssumeUntrustedCertificateIssuer(false);
WebDriver driver = new FirefoxDriver(profile);
driver.get("http://qa.applications.marykayintouch.com/Login/Login.aspx");
【问题讨论】:
-
在浏览器中,您的 URL 显示为
https并在您的代码中显示为http。为什么会这样? -
默认改为https。应用程序启动成功并返回不安全页面。
-
我尝试了此页面上建议的所有解决方案,但运气不好。我正在使用 Webdriver 3.0.1 和 firefox 浏览器 V 50.1.0。我可以导航到常见的网站,如 google、facebook、Gmail。但是下面提到的 URL 不是导航“qa.applications.marykayintouch.com/Login/Login.aspx”。手动它工作正常。请帮助我
-
@Ashok 你找到解决方案了吗?
标签: java selenium firefox webdriver