selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’解决
selenium.common.exceptions.WebDriverException: Message: 'chromedriver’解决:
https://blog.csdn.net/weixin_44318830/article/details/103339273
今天在做selenium测试的时候,可能是很久没用了,直接报了这个异常!
相信很多第一次学习selenium的同学们也对这个异常不陌生了,但具体该如何解决这个bug呢?
主要的原因还是因为selenium模拟的客户端对浏览器的操作,但相应浏览器的驱动版本不匹配导致的。
为了解决这个问题,我们需要先了解我们当前浏览器的版本。以小菌用的谷歌浏览器为例。
打开浏览器,在地址栏输入chrome://version/
便可以查看到谷歌当前的版本号
接着我们来到谷歌浏览器驱动的下载网址http://chromedriver.storage.googleapis.com/index.html
我们再往下滑
选择了一个版本最近的目录双击进入
然后我们只需要根据操作系统,选择不同的zip下载即可!
下载完我们解压开,就是chromedriver.exe
还差最后一步,只需要把它放到下面两个路径下即可!
一个是在C盘的路径下,具体的位置:C:\Program Files (x86)\Google\Chrome\Application
还有一个就是在你python安装的目录下,
然后回到项目中,成功运行!!!
小伙伴们,你们的bug解决好了么!
selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’解决相关推荐
- WebDriverException( selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl
WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executabl ...
- selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to bein PATH
使用Selenium模拟浏览器访问淘宝首页,出现报警 from selenium import webdriver import timebrowser = webdriver.Chrome() br ...
- 在进行天猫商品数据爬虫时遇到selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe'
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in ...
- Jenkins部署Python报错 - selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl
说明:该文属于 Python全栈白宝书专栏,免费阶段订阅数量4300+,购买任意白宝书体系化专栏可加入TFS-CLUB 私域社区. 福利:除了通过订阅"白宝书系列专栏"加入社区获取 ...
- 已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary ...
- 使用selenium时遇到的报错selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1详解及解决方法详解
在开始之前,分享一下使用selenium常遇到的几个问题和报错: 1.首先就是版本问题的报错:selenium.common.exceptions.NoSuchWindowException: Mes ...
- 【解决报错问题:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurr】
运行Appium报错: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occ ...
- 报错解决:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error
报错代码 from appium import webdriver from selenium.webdriver.support.ui import WebDriverWaitdesired_cap ...
- selenium.common.exceptions.WebDriverException: Message: unable to set
本人使用的版本是 python3.7 selenium3.14.1 macOS10.13.3 另外是在谷歌浏览器做的实验 下面看代码: 我想要添加一个name为MUSIC_U的cookie,运行后出现 ...
最新文章
- fullPage教程 -- 整屏滚动效果插件 fullpage详解
- 「大咖云集硅谷AI大会」人工智能商业化的趋势与挑战
- React事件系统整理
- 创建JAVASCRIPT对象3种方法
- nyoj 931 货物运输(Floyd输出路径)
- Linux IPC实践(5) --System V消息队列(2)
- 444 nginx_程序员安全规范:安全无小事,安全防范从nginx配置做起
- inux下切换到root权限有以下几种方式
- java 字符流异常处理_IO字符流9jdk7和jdk9中流的异常的处理
- atitit 研发管理 要不要自己做引擎自己实现架构?.docx
- c++ socket线程池_Netty(3)——Reactor线程模型
- [面试] 步步为营:吉大学士的PG宝洁面经
- 计算机实验报告简要实验步骤,计算机实验报告模板
- live555作为RTSP客户端对接大华的某款球机RTSP流时不能预览问题的解决方案
- 利用OA系统进行档案管理原来这么简单?
- java与c互通aes加密解密
- 软件架构-nginx详解上
- 新浪云、腾讯云、阿里云、百度云、谷歌云、亚马逊云的区别是什么,哪个更适合国内创业者使用?
- 视频跟踪——TLD算法
- 微信小程序css设置本地背景图片
热门文章
- 母版页(Master Pages)--轉載
- STL中的multimap---顺便说说如何查找同一关键字对应的所有值
- php博客文章修改,wordpress博客如何快速修改文章阅读数
- mft按钮设计_哈汽机组660MW超临界空冷机组ETS设计及逻辑说明
- pycharm 2020 版取消鼠标悬停显示说明文档的方法
- 【Pytorch神经网络实战案例】19 神经网络实现估计互信息的功能
- 就业阶段-java语言进价_day06
- git版本控制系统常用指令,Xmind笔记整理
- LeetCode 2022春季赛 2. 烹饪料理(状态枚举)
- 天池 在线编程 有效的字符串