用selenium 测试经常会出现因为浏览器版本自动升级后,导致错误(selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH)。

chrome 历史版本下载:
https://www.chromedownloads.net/chrome64osx-stable/

chrome driver 历史版本下载:
http://chromedriver.storage.googleapis.com/index.html
http://npm.taobao.org/mirrors/chromedriver/

================================================================================================
然而,如果chrome和chrome driver 版本都能对上,但还是报错呢? 那你看下是不是使用了Anaconda环境,需要把chromedriver 放在对应的ENV下的/bin里(我试过放在程序目录没用).

conda ENV list
cd xxxxxx/bin

相关文章:

  • 2021-06-15
  • 2021-05-20
  • 2022-12-23
  • 2021-04-22
  • 2021-04-17
  • 2021-10-03
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2021-12-06
  • 2021-10-06
相关资源
相似解决方案