Selenium Webdriver Version = 3.141 Framework : Pytest
Mozilla Firefox version : 97.0.2
In our application, shadow root is being used as a part of HTML DOM.
When I run my script using google chrome, it works fine but the elements which are under shadow root become not interactable while using mozilla firefox browser.
After spending much time on it, I came to know, only javascript works for firefox when shadow root is being used in the html dom.
I am able to launch firefox browser in pytest but it shows 'connection not secure' on the screen due to which I am not able to login in the application.
I get following warning in firefox browser:
[enter image description here][1]
I have tried couple of properties to disable it but none of them is working.
Following are the solutions , I have tried so far:
Solution-1
options = webdriver.FirefoxOptions()
options.AcceptInsecureCertificates = True
Solution-2
profile = webdriver.FirefoxProfile()
profile.accept_untrusted_certs = True
Solution-3
cap = DesiredCapabilities().FIREFOX
cap["marionette"] = False
Solution-4
browserOptions = webdriver.FirefoxOptions()
browserOptions.add_argument("proxy-server='direct://'")
browserOptions.add_argument("proxy-bypass-list=*")
Is there anything else which I can use to remove 'connection not secure' warning in firefox ?