• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

229
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 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda