python3.6.5 + selenium +VS Code 运行报错:Unable to find a matching set of capabilities的解决

版权声明:版权声明:本文为博主原创文章,转载请注明出处!!!(●'◡'●) https://blog.csdn.net/xiaocy66/article/details/82832981

在python3.6.5 + selenium +VS Code 环境中,在class的__init__ 方法初始化火狐浏览器时出现以下错误:

发生异常: selenium.common.exceptions.SessionNotCreatedException
    Message: Unable to find a matching set of capabilities 

在这里插入图片描述

看了下我本机的FireFox版本是46,
在这里插入图片描述

版本太低了,升级到最新版解决。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaocy66/article/details/82832981