Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97790

How to disable the "Insecure Connection" while opening up a private browser from python selenium script?

$
0
0

While running my python selenium script for firefox browser; I encountered an issue saying

Your connection is not secure

It is not allowing me to Add exception and blocked

Confirm Security Exception

as well (even with preferences manually). hence i am trying to add profiles like "webdriver_accept_untrusted_certs", "webdriver_accept_untrusted_certs" but nothing is helping me out. Not sure how to tackle this...

I need some help here

Currently using the following... Python 3.4.4 selenium==3.4.1 linux 32 bit Firefox 60.6.1esr (32-bit) Everything seems to be compatible, so no issue here.

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import     DesiredCapabilities

cap = DesiredCapabilities().FIREFOX
profile = webdriver.FirefoxProfile()
profile.set_preference("webdriver_assume_untrusted_issuer", False)
profile.update_preferences()
browser = webdriver.Firefox(capabilities=cap,firefox_profile=profile)
browser.get('my url')

and

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import     DesiredCapabilities

cap = DesiredCapabilities().FIREFOX
profile = webdriver.FirefoxProfile()
profile.set_preference("webdriver_accept_untrusted_certs", True)
browser = webdriver.Firefox(capabilities=cap,firefox_profile=profile)
browser.get('my url')

I want to get rid of the "Your Connection is not secure"


Viewing all articles
Browse latest Browse all 97790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>