Jua*_*oto 6 python ssl selenium webdriver certificate
试图找到一种使用 Python WebDriver 和 FirefoxProfile 在带有 Selenium 的 Firefox 中安装特定 SSL 证书的方法。我们需要使用我们自己的自定义证书,该证书存储在运行 WebDriver 的计算机中,因此理想的解决方案如下所示:
profile = get_my_profile()
profile.importCertificate('/my/certificates/my_cert.cert')
driver = new webdriver.Firefox(profile=profile)
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
非常感谢!
| 归档时间: |
|
| 查看次数: |
6961 次 |
| 最近记录: |