其实也用的少,刚好今天有碰到使用selenium过程中chromedriver版本不对,把解决的过程记录一下:
- 下载chromedriver版本,需与chorme版本一致。实际测试中,大版本一致就行了,譬如我的版本是110.0.5481.177 (正式版本) (x86_64) ,可以下载110.0.5481.77。下载地址:http://chromedriver.storage.googleapis.com/index.html
- 打开finder :
open /usr/local/bin/
- 把下载的chromedriver复制到bin中,再点击运行。
- 最后可以查一下chromedriver版本是否正确:
chromedriver -v