chrome窗口报错 出现 "您使用的是不受支持的命令行标记:--ignore-certificate-errors

使用python通过selenium模拟打开chrome窗口报错 出现 "您使用的是不受支持的命令行标记:--ignore-certificate-errors

#在程序前加上这段代码
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches",["ignore-certificate-errors"])
driver = webdriver.Chrome(chrome_options=options)
posted @ 2018-06-01 14:46  狼毒花的世界  阅读(1517)  评论(0编辑  收藏  举报