chromedriver.exe已停止工作 selenium-server打开chrome报错【解决办法】

今天爱分享给大家带来chromedriver.exe已停止工作 selenium-server打开chrome报错【解决办法】,希望能够帮助到大家。
问题现象如上,chrome浏览器版本:58.0.3029.110 chromedriver.exe版本:v2.9.*

原因:chromedriver.exe版本不支持以上版本的chrome浏览器,即两者不配套

解决方法:更新chromedriver.exe为v2.29,问题解决

 

或者:

chrome_options = webdriver.ChromeOptions()
# 下面这行解决崩溃问题 也可能是driver和chrome不匹配
chrome_options.add_argument('''--no-sandbox''')
# 谷歌文档提到需要加上这个属性来规避bug
chrome_options.add_argument('''--disable-gpu''')
driver = webdriver.Chrome(chrome_options=chrome_options)
原文链接:https://blog.itblood.com/2055.html,转载请注明出处。
0
降世神通:四元素训练师v1.1.6b AI版[PC+安卓/1.39G/更新]Four Elements Trainer [v1.1.6b] [同人SLG/汉化/沙盒]
降世神通:四元素训练师v1.1.6b AI版[PC+安卓/1.39G/更新]Four Elements Trainer [v1.1.6b] [同人SLG/汉化/沙盒]
10分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?