Selenium + Python · Lesson 41 of 43
Module 41: Advanced WebDriver
Your task
Implement enable_insecure_certs(options):
Write it in the editor, then press Check answer (Ctrl + Enter).
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.proxy import Proxy, ProxyType
options = Options()
options.accept_insecure_certs = True
# Proxy setup:
proxy = Proxy()
proxy.proxy_type = ProxyType.MANUAL
proxy.http_proxy = "corp-proxy:8080"
options.proxy = proxy
driver = webdriver.Chrome(options=options)Internal environments frequently use self-signed certificates or corporate proxies. In this lesson, you will configure accept_insecure_certs and network proxies using Selenium Options. Let's configure advanced settings!
Part of the Selenium + Python course (Selenium with Python). Practice this concept live in the Selenium Online Compiler or explore our free automation practice form.
Self-signed SSL certificates trigger browser security warning screens. Setting accept_insecure_certs = True bypasses them automatically.
Ready? Solve the task in the editor
Use Check answer to mark it complete. Hints are there if you need them.
___