selenium不能调用chrome v54 打开网页
来源:互联网 发布:手机直播点歌软件 编辑:程序博客网 时间:2024/06/04 19:14
这是由于chromedriver的问题,chromedriver与chrome的版本不匹配。下面是对应的匹配版本(Ref:http://blog.csdn.net/huilan_same/article/details/51896672)
# chromedriver --version
Starting ChromeDriver (v2.7.236843) on port 9515
附:
所有chromedriver均可在下面链接中下载到:
http://chromedriver.storage.googleapis.com/index.html
所以可以下载相应版本的chromedriver,然后直接覆盖掉系统中正在使用的chromedriver,即可!
# cp ~/Downloads/tmp/chromedriver /usr/bin/ -f
另外,使用python+selenium驱动chrome,页面出现小黄条报错“您使用的是不受支持的命令行标记:--ignore-certificate-errors。稳定性和安全性会有所下降”。 解决办法(Ref: https://my.oschina.net/rasine/blog/552560):
使用option参数,该问题可以解决
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["ignore-certificate-errors"])
browser = webdriver.Chrome(chrome_options=options)
阅读全文
0 0
- selenium不能调用chrome v54 打开网页
- selenium不能调用chrome v54 打开网页(ubuntu16.04亲测)
- selenium调用chrome
- selenium 安装+ 调用chrome
- jenkins里跑selenium webdriver,Chrome浏览器不能打开&&unknown error: unable to discover open pages
- selenium调用firefox和chrome
- selenium+Python学习之调用webdriver接口方法来打开和关闭Chrome浏览器
- 不能打开网页?唉!
- selenium webdriver 打开Firefox和chrome
- Selenium 远程打开chrome (java实现)
- selenium-grid,本地/远程打开chrome浏览器
- selenium +chrome headless Adhoc模式渲染网页
- selenium +chrome headless Manual 模式渲染网页
- selenium调用chromedriver打开百度网页,提示“Could not start a new session ”
- selenium 无法调用chrome driver 解决方案
- selenium 调用chrome driver 报错
- selenium webdriver调用google chrome配置chromedriver
- [Java]通过Selenium操作FireFox打开网页
- java控制台学生管理系统
- Python进阶学习笔记——函数式编程之返回函数&闭包
- Eigen matrix to Matlab .mat
- Tomcat8配置tomcat-users.xml配置
- 探索React----第一章:ReactRouterV2基础
- selenium不能调用chrome v54 打开网页
- Java Web基础 Action+Service +Dao三层的功能划分
- UAC关闭设置
- ACM-9月3日周日周末训练心得
- IJKPlayer播放视频黑屏但是有声音
- Codeforces849D Rooter's Song
- HDU 5875 Function (RMQ+二分)
- HDU 2048 神、上帝以及老天爷
- RF新手常见问题总结--(基础篇)