原文:selenium报错Message: unknown error: cannot find Chrome binary

原因是selenium找不到浏览器 注意,这里是浏览器的路径,不是webdriver的路径 ,所以需要指定一下浏览器的路径,具体操作如下: from selenium import webdriver url https: www.baidu.com options webdriver.ChromeOptions 这里是关键options.binary location D: Google Chr ...

2021-11-09 21:23 0 2185 推荐指数:

查看详情

Jenkins执行selenium报错unknown error: cannot find Chrome binary

问题描述: 在Pycharm中执行selenium测试用例,可以正常运行, 集成在Jenkins中,构建时,发现构建成功,但是查看Console Output,报错unknown error: cannot find Chrome binary 原因是找不到Chrome浏览器,缺少 ...

Sun Dec 09 01:26:00 CST 2018 0 869
Python Message: unknown Error: cannot find Chrome binary

Python Message: unknown Error: cannot find Chrome binary 全新计算机报这个错,以前一直没遇到这问题,我指定了chromedriver.exe 的路径: chrome_driver=r"C:\Program ...

Fri Nov 13 02:33:00 CST 2020 0 1580
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM