selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to bein PATH
使用Selenium模拟浏览器访问淘宝首页,出现报警
from selenium import webdriver
import timebrowser = webdriver.Chrome()
browser.get('https://www.taobao.com')
time.sleep(2)
print(browser.page_source)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to bein PATH
解决方案:
- 打开Google 浏览器,在地址栏输入chrome://version/便可以查看到谷歌当前的版本号
- 选择根据版本号选择合适的webdriver驱动器下载
http://chromedriver.storage.googleapis.com/index.html
建议直接点击报错最后的链接进入官网下载 - 任意地方解压,将exe文件放入以下如图两个位置即可
一个是Anaconda 直接放在根目录下
二是在电脑地址栏直接输入C:\Program Files (x86)\Google\Chrome\Application
拷贝进去即可
如果直接打不开可以先按键Windows,打开文件位置
拷贝chromedriver.exe进去即可
拷贝进以下位置也可
打开命令行,输入chromediver
,显示如下即可
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to bein PATH相关推荐
- WebDriverException( selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl
WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executabl ...
- 在进行天猫商品数据爬虫时遇到selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe'
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in ...
- selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’解决
selenium.common.exceptions.WebDriverException: Message: 'chromedriver'解决: https://blog.csdn.net/weix ...
- Jenkins部署Python报错 - selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl
说明:该文属于 Python全栈白宝书专栏,免费阶段订阅数量4300+,购买任意白宝书体系化专栏可加入TFS-CLUB 私域社区. 福利:除了通过订阅"白宝书系列专栏"加入社区获取 ...
- 已解决selenium.common.exceptions.WebDriverException: Messag: ‘geckodriver‘ executable needs to be in PA
已解决selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in P ...
- 已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary ...
- selenium.common.exceptions.WebDriverException: Message: unable to set
本人使用的版本是 python3.7 selenium3.14.1 macOS10.13.3 另外是在谷歌浏览器做的实验 下面看代码: 我想要添加一个name为MUSIC_U的cookie,运行后出现 ...
- 报错解决:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error
报错代码 from appium import webdriver from selenium.webdriver.support.ui import WebDriverWaitdesired_cap ...
- 使用selenium时遇到的报错selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1详解及解决方法详解
在开始之前,分享一下使用selenium常遇到的几个问题和报错: 1.首先就是版本问题的报错:selenium.common.exceptions.NoSuchWindowException: Mes ...
最新文章
- bzoj3295:[CQOI2011]动态逆序对
- Linux服务器上配置anaconda环境
- java 得到checkbox_【JavaWeb】获得选中的checkbox的value
- [CTSC2017]吉夫特(思维+巧妙)
- 读《人月神话》有感2
- 完全卸载gitlab
- android源码中的ndk,如何在不需要Android操作系统源代码的情况下在Android NDK中创建新的NativeWindow?...
- JAVA实时运算_Java 实时运算簿页面
- 基于各国贷款数据的可视化分析(含python代码)
- 据说200G网盘资料
- 词汇处理——词义辨析消歧(一)
- golang使用gomonkey和monkey来mock方法或者函数时报panic: permission denied [recovered]
- WebStorm-2021.1.1下载及安装
- MS Windows 7 快捷键大全
- 机器人系统设计与制作:Python语言实现2.4 用LibreCAD生成机器人的二维CAD图
- 微信引流方法之闲鱼引流
- 计算机专业本科毕业生去当兵,本科毕业去当兵如何?过来人是这么说的,很有道理!...
- stc12c5a60s2c语言程序,单片机STC12C5A60S2控制AT24C04的程序(C语言)
- bug修复日记---------玩家信息被重复写入数据库
- 集线器(Hub)、网线、网卡、交换机、路由器分别工作在OSI参考模型的哪一层?
热门文章
- C语言之函数指针和函数的首地址
- 活照片 android,活照片app安卓
- 利用计算机窃听,observer模拟监听器的实现
- java中find方法_Java Document.find方法代码示例
- 一元二次方程求根公式的花样变换,你看懂了吗?
- java file_java开发之File类详细使用方法介绍
- java junit4_JUnit4使用Java5中的单元测试
- linux基础 linhaifeng,Linux基础之命令练习Day2(示例代码)
- Linux网络模块全局变量,()不是Linux系统的特色.
- linux 往文件写4k大小,[svc]为何linux ext4文件系统目录默认大小是4k?