【发布时间】:2014-06-17 16:45:15
【问题描述】:
我在 Eclipse 控制台中收到以下消息:
无法创建选定的 WebDriver;提前退出。 org.openqa.selenium.WebDriverException:转发新会话时出错,找不到:{platform=ANY,browserName=firefox,version=}
【问题讨论】:
标签: java json firefox selenium remotewebdriver
我在 Eclipse 控制台中收到以下消息:
无法创建选定的 WebDriver;提前退出。 org.openqa.selenium.WebDriverException:转发新会话时出错,找不到:{platform=ANY,browserName=firefox,version=}
【问题讨论】:
标签: java json firefox selenium remotewebdriver
解决方案:检查 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"
}
],
【讨论】: