Message: session not created exception: Missing or invalid capabilities (Driver info: chromedrive
2022-08-10 00:36:26
3:chrome版本为104.0.5112.81
安装的是chrome对应的驱动器
问题:Message: session not created exception: Missing or invalid capabilities (Driver info: chromedriver=2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab),platform=Windows NT 10.0.19044 x86_64)
解决办法:
删除原来的selenium4.30版本,因为python3不适用selenium4.30版本,适用于selenium3的版本
selenium.common.
exception
s.
Session
Not
Create
d
Exception
:
Message
:
session
not
create
d
exception
:
Missing
or
invalid
ca
p
abi
lities
一、问题原因
报这个错是因为 当前浏览器的版本与
chrome
driver
.exe的版本不一致了。这个时候你需要先知道自己当前浏览器的版本 ,然后再去下载一个
chrome
driver
.exe的对应版就好了
二、解决办法
1、查看浏览器版本
之前安装了其它第三包把selenium版本更新到了4.x.x。猜测这个版本对
chrome
版本有最低要求。经过升级
chrome
版本与
chrome
driver
也确实能正常。显示不是
chrome
driver
与
chrome
版本不兼容问题。后面脑回路,终于知道原因。2)升级
chrome
与
chrome
driver
。
成功解决:selenium.common.
exception
s.
Session
Not
Create
d
Exception
:
Message
:
session
not
create
d: This version of
Chrome
Driver
only supports
Chrome
version 100
chrome
driver
的安装一定要与
Chrome
的版本一致,不然就不起作用(不要问我是怎么知道的)。
有两个下载地址:
1、http://
chrome
driver
.storage.googleapis.com/index.html
2、https://npm.taobao.org/mirrors/
chrome
driver
/
或者本地下载https://www.jb51.net/softs/538241.html
当然,你首先需要查看你的
Chrome
版本,在浏览器中输入
chrome
://version
问题描述:selenium.common.
exception
s.
Session
Not
Create
d
Exception
:
Message
:
session
not
create
d
exception
:
Missing
or
invalid
ca
p
abi
lities
。
selenium.common.
exception
s.Web
Driver
Exception
:
Message
:'gecko
driver
' executable needs to be in PATH.
解决办法:
Firefox浏览器,下载gecko
driver
,可以到https://github.com/moz...
如果是web
driver
.Firefox,那么导入的包也都源于firefox的包
出现这个问题是因为由于selenium很多类都很相似,如selenium.web
driver
.firefox.options与selenium.web
driver
.
chrome
.options,导致导包的时候容易出错,而代码本身是没有问题的。
错误代码如下:
from selenium.web
driver
.f
【问题起因】
2018年12月26日晚,启动我的pycharm准备学习selenium相关的知识,结果报错了:selenium.common.
exception
s.
Session
Not
Create
d
Exception
:
Message
: Unable to find a matching set of
ca
p
abi
lities
开始我很疑惑,因为早一段时间,火狐浏览器可以通过...
一直正常运行的项目这次运行时出现了:
Installation failed with
message
Failed to finalize
session
: INSTALL_FAILED_
INVALID
_APK: /data/app/vmdl890369339.tmp/7_slice__ signatures are inconsistent.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-ins
当我们在编写小程序,要发送请求时,wx.request({})时或许会遇到如下的问题:
(此图片来源于网络,如有侵权,请联系删除! )
一:这是因为微信小程序的开发中,域名只能是https方式请求,所以我们必须在小程序微信公众平台设置小程序开发设置,配置服务器合法域名(必须是https)
如下图所示:
(此图片来源于网络,如有侵权,请联系删除! )
二:如果你的所有配置都是准确的,只是你的后台数据设置的域名为http,那么需要你在如下界面,勾选最后一个选项(这个目前解决的为开发中遇到的问题)
(此图片来源于网络,如有侵权,请联系删除! )
在做selenium测试的过程中难免会因为浏览器版本更新的问题,导致系统所下载的驱动版本与浏览器不一致。
因为在之前的博客中博主已经解决了不同bug但解决方案是相同的,故在这里仅设置传送门,不再做过多的赘述。...
selenium.common.
exception
s.
Session
Not
Create
d
Exception
:
Message
:
session
not
create
d全套解决方案