Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

308
Views
Is there any way to remove 'connection not secure' notification in mozilla firefox in pytest framework?

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 ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!