找不到与硒3.4.3,firefox 54.0和gecko驱动程序0.17匹配的功能集 [英] Unable to find a matching set of capabilities with selenium 3.4.3, firefox 54.0 and gecko driver 0.17

查看:67
本文介绍了找不到与硒3.4.3,firefox 54.0和gecko驱动程序0.17匹配的功能集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if __name__ == '__main__':
 driver=webdriver.Firefox(executable_path=r'/home/saurabh/Saurabh/LearnPython/Automation/geckodriver');

运行上面的代码后,我得到一个错误:

After running the above code I am getting an error as :

selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities

推荐答案

请确保您所指的是\path\to\FirefoxPortable\App\Firefox64\firefox.exe,而不仅仅是\path\to\FirefoxPortable\FirefoxPortable.exe

Make sur you are pointing to \path\to\FirefoxPortable\App\Firefox64\firefox.exe and not just \path\to\FirefoxPortable\FirefoxPortable.exe

这篇关于找不到与硒3.4.3,firefox 54.0和gecko驱动程序0.17匹配的功能集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆