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

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

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

在这里插入图片描述

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

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

原文地址:https://www.cnblogs.com/xiaocy66/p/10589284.html