gpt4 book ai didi

java - 从 Eclipse 启动 RemoteWebDriver 测试时出错

转载 作者:行者123 更新时间:2023-12-01 12:50:17 24 4
gpt4 key购买 nike

我在 Eclipse 控制台中收到以下消息:

无法创建选定的 WebDriver;提前退出。org.openqa.selenium.WebDriverException:转发新 session 时出错,找不到:{platform=ANY,browserName=firefox,version=}

最佳答案

解决方案:检查nodeConfig.json文件并确认所需的浏览器包含在功能对象中。在此问题中,缺少“firefox”名称:值对。

"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"platform": "WINDOWS",
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],

关于java - 从 Eclipse 启动 RemoteWebDriver 测试时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24269218/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com