【发布时间】:2016-10-18 11:39:39
【问题描述】:
我正在尝试修复内部应用程序的测试,目前我并不关心安全性(我只想让它工作)。
它给了我 SSL 警告,破坏了测试。具体来说,您的连接不安全/SEC_ERROR_UNKOWN_ISSUER。
我已经尝试过设置capabilities['acceptSslCerts'] = True 和
profile = webdriver.FirefoxProfile()
profile.accept_untrusted_certs = True
两者都不起作用。驱动程序在构建后列出的功能将 acceptSslCerts 设置为 false。
注意我使用的是 Python 和 Firefox 47。
我还改用了新的 marionette Firefox Webdriver,因为常规的在启动时崩溃了。
【问题讨论】:
-
也试试 Chromedriver。因为它比 Firefox 和 Selenium 更稳定。
标签: selenium firefox ssl selenium-webdriver selenium-firefoxdriver