1

So when using selenium python with firefox I need to prevent this: enter image description here

This is what I have already tried

profile = webdriver.FirefoxOptions()
profile.accept_insecure_certs = True
profile.accept_untrusted_certs = True
firefox = webdriver.Firefox(executable_path=utils.str_master_dir('geckodriver.exe'), options=profile)
...

Any help would be appreciated thanks.

Prophet
  • 32,350
  • 22
  • 54
  • 79
Ari Frid
  • 127
  • 7

1 Answers1

1

This should work:

from selenium import webdriver
capabilities = webdriver.DesiredCapabilities().FIREFOX
capabilities['acceptInsecureCerts'] = True
capabilities['marionette'] = True
driver = webdriver.Firefox(desired_capabilities=capabilities)

You can also create a custom Firefox profile as described here

Prophet
  • 32,350
  • 22
  • 54
  • 79