selenium使用chrome时,报错ignore certificate errors
来源:互联网 发布:ip的数据报文格式 编辑:程序博客网 时间:2024/05/16 12:22
#coding=utf-8
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
driver.find_element_by_id("kw").send_keys("Selenium2")
driver.find_element_by_id("su").click()
driver.quit()
执行上面程序,出现如下报错
解决办法:
#在程序前加上这段代码from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_experimental_option("excludeSwitches",["ignore-certificate-errors"])driver = webdriver.Chrome(chrome_options=options)
阅读全文
0 0
- selenium使用chrome时,报错ignore certificate errors
- 解决selenium Java启动Chrome出现提示“--ignore-certificate-errors”
- python3.5+selenium打开chrome浏览器,去掉ignore-certificate-errors提示
- --ignore-certificate-errors问题解决
- chrome运行webdriver脚本提示--ignore-certificate-errors
- 消除Chrome浏览器中--ignore-certificate-errors提示
- selenium 调用chrome driver 报错
- 使用selenium报错
- You are using an unsupported command-line flag --ignore-certificate-errors. Stability and security w
- 使用selenium报错InvalidElementStateException
- selenium,初学使用chrome时报错
- selenium使用chrome浏览器
- 利用selenium时,chrome和firfox使用代理ip
- mysql 防止主键冲突报错-ignore
- GIT常用命令 && GIT本地使用 && GIT报错解决 && GIT的忽略文件(ignore files)
- GIT常用命令 && GIT本地使用 && GIT报错解决 && GIT的忽略文件(ignore files)
- GIT常用命令 && GIT本地使用 && GIT报错解决 && GIT的忽略文件(ignore files)
- GIT常用命令 && GIT本地使用 && GIT报错解决 && GIT的忽略文件(ignore files)
- char & string 与 int 类型的互换方法
- C++内存管理个人见解
- bootstrap详解(CSS)
- 利用Android广播机制关闭多个activity
- surfaceview的详解和使用
- selenium使用chrome时,报错ignore certificate errors
- OC中NSString 的常用方法
- Unity Mathf 数学运算(C#)
- <Android APK签名验签>二:META-INF文件分析
- 数据库备份的几种类型
- generator 生成dao model代码
- linux 开发板设置 root登录 和 登录后启动自定义应用程序
- 【问题记录】常用IDE快捷键积累
- 第4节-Linux磁盘分区规划