为了账号安全,请及时绑定邮箱和手机立即绑定

对于旧版Google Chrome,无法在Python中使用Selenium找到Chrome

对于旧版Google Chrome,无法在Python中使用Selenium找到Chrome

慕沐林林 2019-12-06 12:35:29
出于兼容性原因,我更喜欢将Chrome版本55.0.2883.75与Chromedriver v.2.26一起使用。我从https://www.slimjet.com/chrome/google-chrome-old-version.php和Chromedriver 2.26从https://chromedriver.storage.googleapis.com/index.html?path下载了较旧版本的chrome = 2.26 /。我正在使用以下代码尝试设置我的Chrome二进制位置:from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionsoptions = Options()options.binary_location = "C:\\Program Files\\Chrome\\chrome64_55.0.2883.75\\chrome.exe"driver = webdriver.Chrome('chromedriver.exe', chrome_options = options)但是,当我尝试启动WebDriver Python时,返回以下错误:WebDriverException: unknown error: cannot find Chrome binary(Driver info: chromedriver=2.26.436362(5476ec6bf7ccbada1734a0cdec7d570bb042aa30),platform=Windows NT 10.0.14393 x86_64)我曾尝试搜索类似的问题和答案,但到目前为止还没有任何运气。非常感谢您的帮助-预先感谢您!
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 1135 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信