[py] Copy `acceptInsecureCerts` to Options for Firefox. Fixes
Firefox is incredibly strict here so we need to make sure that we
copy it across. When we can delete
capabilities this can be removed.
@@ -167,6 +167,12 @@ class WebDriver(RemoteWebDriver):
self.profile = firefox_profile
options.profile = firefox_profile
+ # TODO: Remove when we remove capabilities code. Firefox
+ # is being strict here, like it should. When we can remove capabilities
+ # for options this will be good to be deleted.
+ if capabilities.get("acceptInsecureCerts"):
+ options.accept_insecure_certs = capabilities.get("acceptInsecureCerts")
+
if self.service is None:
self.service = Service(
executable_path,
