【Python】处理 selenium.common.exceptions.WebDriverException 报错问题
安装selenium的话,使用pip即可:pip install selenium
但是安装成功后运行会报错:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.
主要原因可能是没有安装对应的浏览器驱动程序。
我常使用Firefox,其对应驱动的Github地址在这里:
选择合适的压缩包下载即可:
打开win64压缩包,里面有一个exe文件。将此exe文件copy到python.exe的目录下:
然后重新运行你的程序,一般来说可以不报这个错误了!
【Python】处理 selenium.common.exceptions.WebDriverException 报错问题相关推荐
- 遇到python调用selenium库使用chrome时候报错 selenium.common.exceptions.WebDriverException问题
遇到selenium.common.exceptions.WebDriverException问题 selenium.common.exceptions.WebDriverException: 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时遇到的报错selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1详解及解决方法详解
在开始之前,分享一下使用selenium常遇到的几个问题和报错: 1.首先就是版本问题的报错:selenium.common.exceptions.NoSuchWindowException: Mes ...
- 已解决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: ‘chromedriver‘ executable needs to bein PATH
使用Selenium模拟浏览器访问淘宝首页,出现报警 from selenium import webdriver import timebrowser = webdriver.Chrome() br ...
- selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’解决
selenium.common.exceptions.WebDriverException: Message: 'chromedriver'解决: https://blog.csdn.net/weix ...
- selenium.common.exceptions.WebDriverException: Message: unable to set
本人使用的版本是 python3.7 selenium3.14.1 macOS10.13.3 另外是在谷歌浏览器做的实验 下面看代码: 我想要添加一个name为MUSIC_U的cookie,运行后出现 ...
最新文章
- TensorFlow Serving 尝尝鲜
- python学习笔记系列-方便自我学习
- golang浮点型及使用细节
- 弗吉尼亚理工大学(Virginia Tech)NCR校区招收计算机硕士学位研究生
- java ftp 判断目录存在_java判断ftp目录是否存在的方法
- python 散点图点击链接图片_在Python和matplotlib中连接三维散点图中的两点
- js代码前面的分号是什么意思?
- 青岛大学的计算机专业考研分数线,青岛大学考研分数线
- C语言 两种方法优化:输入一个日期的年、月、日,计算并输出这天是该年的第几天。
- android编译生成apk文件怎么打开,android studio生成apk在哪?
- WiFi共享大师后无法上网
- 【产品人生】<基础认知>产品分析方法产品体验分析报告撰写
- html 代码实现一些符号,大于号、小于号、商标等
- mysql配置jdbc
- HCIA基础知识(1)
- 电子音乐及HOUSE的分类知识
- 区块链概念股分化 新落地公司成新宠
- vue中使用高德地图POI
- 【三】K8s安装-Harbor搭建
- 基于python的图书信息管理系统