何使用Selenium在Python中导入Firefox的SSL

何使用Selenium在Python中导入Firefox的SSL

本文介绍了如何使用Selenium在Python中导入Firefox的SSL证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用Python WebDriver和FirefoxProfile在Selenium的Firefox中找到安装特定SSL证书的方法。我们需要使用存储在运行WebDriver的计算机中的自己的自定义证书,因此理想的解决方案如下所示:

  profile = get_my_profile()
profile.importCertificate('/ my / certificates / my_cert.cert')
driver = new webdriver.Firefox(profile = profile)


非常感谢!

$

b $ b

解决方案

,但下一个答案提供了。


Trying to find a way to install a particular SSL certificate in Firefox with Selenium, using the Python WebDriver and FirefoxProfile. We need to use our own, custom certificate which is stored in the computer running the WebDriver, so the ideal solution would look like this:

profile = get_my_profile()
profile.importCertificate('/my/certificates/my_cert.cert')
driver = new webdriver.Firefox(profile=profile)

How can I achieve this?

Thanks very much!

解决方案

From this answer

although the next answer provides a workaround.

这篇关于如何使用Selenium在Python中导入Firefox的SSL证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 15:12