首页 |  我的博客 |  查看该博主内容分类 | 

The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed. google-chrome浏览器启动报错解决方案

主要是selenium在线上部署时常见的google-chrome问题,只要加上一些配置即可。

option.add_argument('--no-sandbox')
option.add_argument('--disable-dev-shm-usage')
option.add_argument('--disable-extensions')
option.add_argument('--headless')

注意,顺序也有一定关系。

 

posted @ 2022-09-11 14:33  Z哎呀  阅读(4105)  评论(0)    收藏  举报