![]() Profile = webdriver.FirefoxProfile(profile_directory=ffProfilePath) # I create a FireFox profile where I had already made an exception for the site I'm testingįfProfilePath = 'D:\Work\PyTestFramework\FirefoxSeleniumProfile' # I wanted to get around the sec_error_unknown_issuer problems with the new Firefox and Marionette driver #In the next line I'm using a specific FireFox profile because Here is my code: from selenium import webdriverįrom _capabilities import DesiredCapabilitiesįirefox_capabilities = DesiredCapabilities.FIREFOX t_preference('-cache', False)īut using a custom profile as mentioned above did. I didn't find any of the following lines resolved the issue for me: firefox_capabilities = DesiredCapabilities.FIREFOXįirefox_capabilities = True ![]() Using this info on how to make a custom profile, I did the following:Ģ) Manually went to the site in FF to raise the untrusted certificate errorģ) Add a site exception (when the error is raised click advanced and then add exception)Ĥ) confirm the exception works by reloading the site (you should no longer get the errorĥ) Copy the newly create profile into your project (for me it's a selenium testing project)Ħ) Reference the new profile path in your code I resolved it just by using a custom FF profile which was easier to do than I expected.
0 Comments
Leave a Reply. |