一、问题描述

Selenium自动化脚本运行报错:cannot find Chrome binary

二、原因分析

Selenium用chromedrive插件启动chome运行自动化脚本是,如果浏览器chomean非默认安装路径,Selenium就找不到chome.exe,抛出异常。

三、解决方法 

重新安装chome即可,注意不要更改默认安装路径。亲测有效。

 

posted on 2025-08-08 17:36  xiaoguan-bky  阅读(23)  评论(0)    收藏  举报