2
試圖找到一種方法來使用Python WebDriver和FirefoxProfile在Selenium的Firefox中安裝特定的SSL證書。我們需要使用存儲在運行webdriver的計算機我們自己的,定製的證書,所以理想的解決方案應該是這樣的:如何使用Selenium [使用Python]導入Firefox的SSL證書?
profile = get_my_profile()
profile.importCertificate('/my/certificates/my_cert.cert')
driver = new webdriver.Firefox(profile=profile)
我怎樣才能做到這一點?
非常感謝!