How to disable Firefox's untrusted connection warning using Selenium?
Just found this from the Mozilla Foundation bug link and it worked for me.
caps.setCapability("acceptInsecureCerts",true)
I found this comment on enabling this functionality in Selenium for Java. There is also this StackOverflow question about the same issue, also for Java For Python, which was my desired target language, I came up with this, through browsing the FirefoxProfile
code:
profile = webdriver.FirefoxProfile()
profile.accept_untrusted_certs = True
Which, as far as I have tested, has produced the expected behavior.
Hope this helps somebody!
No need of custom profiles to deal with "Untrusted connection" on WebDriver
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new FirefoxDriver(capabilities);