我正在尝试通过python-selenium浏览网站进行测试。但firefox一直在说不安全的连接。我为该页面添加了永久性异常,当我手动访问该网页但不通过selenium时,异常正常。我根据我在Internet上找到的不同建议创建了一个自定义配置文件。我在我的代码中添加了以下行,但它仍然无法通过selenium工作。我正在使用ubuntu14.04
profile = webdriver.FirefoxProfile(profile_directory="/home/ubuntu/validation/selenium")
profile.accept_untrusted_certs = True
#I also tried by adding these lines to the above lines, but none of the things are working for me.
firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
firefox_capabilities['handleAlerts'] = True
firefox_capabilities['acceptSslCerts'] = True
firefox_capabilities['acceptInsecureCerts'] = True