尝试使用Python WebDriver和FirefoxProfile在带有Selenium的Firefox中安装特定SSL证书。我们需要使用自己的自定义证书,该证书存储在运行WebDriver的计算机中,因此理想的解决方案如下:
profile = get_my_profile()
profile.importCertificate('/my/certificates/my_cert.cert')
driver = new webdriver.Firefox(profile=profile)
我怎样才能做到这一点?
非常感谢!
From this answer
尽管下一个答案提供了workaround。
相关问题 更多 >
编程相关推荐