檢查chromedriver版本是否與Chrome一致(是的,就這么簡(jiǎn)單…)
看了很多方法,說(shuō)是Selenium版本變了,需要用Service,復(fù)制下來(lái)還是一樣的錯(cuò)誤,試了好久都不行,最后瞎貓碰上死耗子,是Chrome自動(dòng)更新導(dǎo)致chromedriver不可用了…
附上下載地址:
https://registry.npmmirror.com/binary.html?path=chromedriver/文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-511048.html
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-511048.html
到了這里,關(guān)于解決DeprecationWarning: executable_path has been deprecated, please pass in a Service object的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!