安装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 报错问题相关推荐

  1. 遇到python调用selenium库使用chrome时候报错 selenium.common.exceptions.WebDriverException问题

    遇到selenium.common.exceptions.WebDriverException问题 selenium.common.exceptions.WebDriverException: Mes ...

  2. 【解决报错问题:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurr】

    运行Appium报错: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occ ...

  3. 报错解决:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error

    报错代码 from appium import webdriver from selenium.webdriver.support.ui import WebDriverWaitdesired_cap ...

  4. 使用selenium时遇到的报错selenium.common.exceptions.WebDriverException: Message: Service xxxxstaus:1详解及解决方法详解

    在开始之前,分享一下使用selenium常遇到的几个问题和报错: 1.首先就是版本问题的报错:selenium.common.exceptions.NoSuchWindowException: Mes ...

  5. 已解决selenium.common.exceptions.WebDriverException: Messag: ‘geckodriver‘ executable needs to be in PA

    已解决selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in P ...

  6. 已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

    已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary ...

  7. selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to bein PATH

    使用Selenium模拟浏览器访问淘宝首页,出现报警 from selenium import webdriver import timebrowser = webdriver.Chrome() br ...

  8. selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’解决

    selenium.common.exceptions.WebDriverException: Message: 'chromedriver'解决: https://blog.csdn.net/weix ...

  9. selenium.common.exceptions.WebDriverException: Message: unable to set

    本人使用的版本是 python3.7 selenium3.14.1 macOS10.13.3 另外是在谷歌浏览器做的实验 下面看代码: 我想要添加一个name为MUSIC_U的cookie,运行后出现 ...

最新文章

  1. TensorFlow Serving 尝尝鲜
  2. python学习笔记系列-方便自我学习
  3. golang浮点型及使用细节
  4. 弗吉尼亚理工大学(Virginia Tech)NCR校区招收计算机硕士学位研究生
  5. java ftp 判断目录存在_java判断ftp目录是否存在的方法
  6. python 散点图点击链接图片_在Python和matplotlib中连接三维散点图中的两点
  7. js代码前面的分号是什么意思?
  8. 青岛大学的计算机专业考研分数线,青岛大学考研分数线
  9. C语言 两种方法优化:输入一个日期的年、月、日,计算并输出这天是该年的第几天。
  10. android编译生成apk文件怎么打开,android studio生成apk在哪?
  11. WiFi共享大师后无法上网
  12. 【产品人生】<基础认知>产品分析方法产品体验分析报告撰写
  13. html 代码实现一些符号,大于号、小于号、商标等
  14. mysql配置jdbc
  15. HCIA基础知识(1)
  16. 电子音乐及HOUSE的分类知识
  17. 区块链概念股分化 新落地公司成新宠
  18. vue中使用高德地图POI
  19. 【三】K8s安装-Harbor搭建
  20. 基于python的图书信息管理系统

热门文章

  1. 12-order by和group by 原理和优化 sort by 倒叙
  2. 史上最全的前端开发面试题(含详细答案)
  3. [知了堂学习笔记]_网络基础知识_1.OSI参考模型(网络七层协议)
  4. Linq中dbSet 的查询
  5. 两点之间最短路径:弗洛伊德算法
  6. 使用缓存的9大误区(上)(转)
  7. ExtJS 4 Beta 2预览:Ext.Brew包
  8. VS Code编译Python
  9. MySQL中的char与varchar详解
  10. ThinkPHP-保存生成的二维码