将Firefox升级到版本60.3.0后,无法运行自动化测试

问题描述 投票:0回答:1

我们在项目中使用机器人框架进行自动化测试。我们使用的是Firefox 47版,gecko驱动程序版本0.16.0和selenium 3.14,并且能够成功运行所有测试。

最近,IT团队决定将Firefox升级到60.3.0,现在自动化失败了,错误如下:

SessionNotCreatedException: Message: Unable to find a matching set of capabilities.

尝试使用geckodriver版本0.21,0.22,0.24,但徒劳无功。收到同样的错误。

任何帮助或见解将不胜感激。

selenium firefox selenium-webdriver geckodriver
1个回答
1
投票

此错误消息...

SessionNotCreatedException: Message: Unable to find a matching set of capabilities.

...暗示GeckoDriver无法启动/生成新的WebBrowser即Firefox浏览器会话。

您的主要问题是您正在使用的二进制文件版本之间的不兼容性。

从您的问题中不清楚Selenium,GeckoDriver和Firefox组合的哪个组合产生了上述错误。但是,根据最佳做法,请始终遵循以下GeckoDriver, Selenium and Firefox Browser compatibility chart

© www.soinside.com 2019 - 2024. All rights reserved.