selenium 安装Chrome浏览器驱动


 

下载与当前Chrome对应的chromedriver.exe

浏览器查看版本号,对应下载驱动 

1、chromedriver驱动包下载地址:http://chromedriver.storage.googleapis.com/index.html

2、将下载的驱动 chromedriver  放到 PYTHON 安装目录 下(PS:非浏览器目录下哈)

 3、启动浏览器  driver = webdriver.Chrome()

 

超攒的博客

 python selenium自动化之chrome与chromedriver版本兼容问题

https://www.cnblogs.com/new-june/p/14249974.html

 

报错:

File "C:\Users\HUAWEI\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

 解决方法:

把下载好的驱动 chromedriver 放到PYTHON 安装目录 下(非浏览器目录下) ,正常了

 

明细可以参考以下大神网址

https://www.cnblogs.com/LLSHPower/p/12160506.html

http://element-ui.cn/news/show-17251.aspx

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM