在火狐浏览器33版本,python2.7运行selenium webdriver api报错:SessionNotCreatedException: Message: Unable to find a matching set of capabilities 网上搜了一下,说可以升级浏览器版本到52以上,我升级到了55版本,没有报错了 解决办法:Update Firefox to version >= 52.0.3,更新Firefox版本52.0.3以上 可能也与geckodriver的版本有关…
raise exception_class(message, screen, stacktrace)selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities selenium3.0之后的版本的就不支持直接打开火狐浏览器,启动火狐浏览器报错,如下图,要想运行就需要我们单独装上驱动. 3.0之前的版本,是可以直接打开火狐浏览器的.火狐版本不…
安装了python2,使用pip安装了selenium,但是在使用时,报了“selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.” 网上查了一下解决办法,此处做下记录: 原因:使用pip安装selenium,默认安装的是最新版本的selenium,使用pip list查了一下我的selenium版本,是3.5.0的,firefox版本,是47.0.…
问题: 原因:firefox浏览器版本和浏览器驱动版本不匹配 解决办法:卸载高版本浏览器,安装低版本浏览器 下载地址:http://ftp.mozilla.org/pub/firefox/releases/ 比如http://ftp.mozilla.org/pub/firefox/releases/58.0/win64/zh-CN/ 58.0指版本,win64指64位,zh-CN指简体中文 目前我能成功的环境为: 驱动:geckodriver-v0.24.0-win64.zip   浏览器:v5…
错误再现 原因:firefox浏览器版本和浏览器驱动版本不匹配 解决办法:卸载高版本浏览器,安装低版本浏览器…
在python3.6.5 + selenium +VS Code 环境中,在class的__init__ 方法初始化火狐浏览器时出现以下错误: 发生异常: selenium.common.exceptions.SessionNotCreatedException Message: Unable to find a matching set of capabilities 看了下我本机的FireFox版本是46, 版本太低了,升级到最新版解决.…
python在用selenium调Firefox时报错: Traceback (most recent call last):  File "G:\python_work\chapter11\test_selenium_firefox.py", line 10, in <module>    driver = webdriver.Firefox()  File "C:\Python34\lib\site-packages\selenium\webdriver\fi…
卸载更新浏览器后,所编写的脚本无法运行,报如下的错误:selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities 百度查看问题,所示版本号不对,,一下是相关软件的版本号,没看出什么毛病.问题出在:应该将火狐浏览器驱动添加到火狐浏览器安装目录下,并且将火狐浏览器安装目录放在path下面.(出现大意,忘了在火狐浏览器下放其对应的驱动)  geckodrive…
python2 + selenium + eclipse 中,配置好runserver 127.0.0.1:9000,运行的时候,报错,如图: 原因:       google发现是WSGI application的问题,好象是因为django升级,配置有所变化.   原来: import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() 改成: from django.core.wsg…
在python脚本中,使用selenium启动浏览器报错,原因是未安装浏览器驱动,报错内容如下: # -*- coding:utf-8 -*-from selenium import webdriver driver = webdriver.Firefox()driver.get("http://www.baidu.com") 报错提示如下所示: Traceback (most recent call last): File "D:\Program Files\Python3…