Selenium: How to Disable or Bypass ‘Connection Is Not Private’ for Chrome and Firefox

I have been working with Selenium Web Driver directly with Chrome and Firefox. And one of the things I have encountered when tests are run against my development server is the ‘Connection Is Not Private’ page, which is due to lack of ssl certificate. And this created a problem in my automation scripts as it prevents the scripts from interacting with the page.

The solution is simple, there are corresponding flags that can be set to bypass this page (of course, give we trust ourselves, just kidding).

For Firefox:

For chrome:

Or you can put it in an arrya like so:

Hope this will be able to help someone who is in need of this.



[1] How to disable the “Insecure Connection” while opening up a private browser from python selenium script?

Leave a Reply

Your email address will not be published. Required fields are marked *