打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
使用pyton通过selenium模拟打开chrome窗口报错 出现 “您使用的是不受支持的命令行标记:ignorecertificateerrors。稳定性和安全性会有所下降”
使用pyton通过selenium模拟打开chrome窗口报错

出现 "您使用的是不受支持的命令行标记:--ignore-certificate-errors。稳定性和安全性会有所下降"

解决方法如下

from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_experimental_option("excludeSwitches", ["ignore-certificate-errors"])browser = webdriver.Chrome(chrome_options=options)browser.get("http://google.com/")

参考
https://code.google.com/p/chromedriver/issues/detail?id=799
http://stackoverflow.com/questions/24168407/unsupported-command-line-flag-ignore-certificate-errors


关闭
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
第68天:Selenium 环境配置
解决linux下运行selenium报错:chrome failed to start 和 unknown error: DevToolsActivePort file doesn‘t exist
1.2 selenium3和chrome环境
Windows环境下python爬虫常用库和工具的安装(UrlLib、Re、Requests、Selenium、lxml、Beautiful Soup、PyQuery 、PyMySQL等等)
手机浏览器自动化及桌面浏览器模拟手机自动化
Python使用Selenium模拟浏览器输入内容和鼠标点击 !
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服