关于selenium WebDriverException: Message: unknown error: DevToolsActivePort file doesnt exist 的解决方案

文章参考:

https://hant-kb.kutu66.com/others/post_13460379

在浏览器设置参数时加入如下两行代码

1   # 取消沙盒模式
2     options.add_argument("--no-sandbox")
3     # 这一行我也不清楚
4     options.add_argument('--disable-dev-shm-usage')

 

posted @ 2020-07-10 09:11  胸怀丶若谷  阅读(637)  评论(0编辑  收藏  举报