Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

307
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda