selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities”的错误完美解决2019.7.31

  • 能走到这里的我相信都是已经安装了selenium,以及geckodriver.exe(注意版本,64位就下64位的。)
  • 我们逐一排错:
  • 一:是否加入了环境变量!
  • 二:是否浏览器版本最新(基本上就是这个错误)

调了一晚上,找了无数的博客,都没解决问题,人都傻了。写在这里,希望对大家能有帮助。

能走到这里的我相信都是已经安装了selenium,以及geckodriver.exe(注意版本,64位就下64位的。)

下载地址https://github.com/mozilla/geckodriver/releases

我们逐一排错:

一:是否加入了环境变量!

把下载的geckodriver.exe放入到python.exe的同级目录下,因为你的python已经添加环境变量了,这样就省得再添加,。

把火狐的环境变量也添加一下。
这样就把其加入环境变量,方便调用。

环境变量添加方法:
https://jingyan.baidu.com/article/47a29f24610740c0142399ea.html

二:是否浏览器版本最新(基本上就是这个错误)

查看方式如下
右击浏览器上方的空白处,选择菜单栏,点击关于,即可查看
没错显示已是最新版本,没错它就显示了。然后还是那个错误,各种搜。
建议去火狐官网看一下,是否为最新版本,果不其然现在的版本为68.然后重新安装。

**这里面的一个坑就在于火狐浏览器的更新可能不是最新!**去官网更新一下就可以啦。

打开啦,舒服了。

selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilitie相关推荐

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

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

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

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

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

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

  4. 已解决 selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element 找不到元素的问题

    场景 使用selenium的find_element_by_xpath()函数报错:selenium.common.exceptions.NoSuchElementException: Message ...

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

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

  6. WebDriverException( selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl

    WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executabl ...

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

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

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

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

  9. 在进行天猫商品数据爬虫时遇到selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe'

    selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in ...

最新文章

  1. android 收不到短信广播,android – 短信广播接收器没有得到textmessage
  2. 分布式锁的几种实现方式
  3. java实现将A表数据转移到B表_解决用B表跟新A表数据,如果A表中没有,则把B表的数据插入A表(merge into)...
  4. Java算法之 选择排序
  5. php限制一个函数在几分钟内不被调用_在PHP一句话木马使用过程中的种种坑点分析...
  6. 后宫佳丽三千,假如古代皇帝也懂负载均衡算法...
  7. PHP实现多文件上传
  8. 程序员真是一门苦差事!
  9. 指针和和一般的数据传递
  10. pytorch_basics
  11. mybatis报-因为 accessExternalDTD 属性设置的限制导致不允许 http 访问
  12. Java——字符串分割[split()]和截取[substring()]
  13. 强烈推荐Seam实战
  14. android api (82) —— InputConnection [输入法]
  15. 发到微信的apk文件变成apk.1,如何安装,解决办法
  16. 适合高中生的计算机相关知识,高中生学习计算机知识的方向浅议.doc
  17. 常用数学公式,推导记录
  18. 好设计如何诞生:关于好设计的100件事
  19. 趣味数学--贷款计算
  20. Beyond Compare4试用过期解决方法

热门文章

  1. 编译全志V3S(荔枝派zero)整个系统流程及后续故障答疑使用技巧等
  2. 《一步一脚印 90后程序员》17
  3. 七年级下计算机授课计划,七年级下学期信息技术组教学的工作计划
  4. SVM学习(五):松弛变量与惩罚因子
  5. tcptraceroute命令可以绕过最常见的防火墙过滤器
  6. Estimating the Trajectory Curvature Using Three Trajectory Points Output From Motion Planning
  7. AUTOTOOLS工具
  8. 方正计算机驱动程序,方正Founder A5000 驱动
  9. 企业全能邮件营销机器人
  10. mac 读写 移动硬盘_关于“这是一个可读写的移动网络”的注释