Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

304
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda