【问题标题】:Error launching RemoteWebDriver test from Eclipse从 Eclipse 启动 RemoteWebDriver 测试时出错
【发布时间】:2014-06-17 16:45:15
【问题描述】:

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

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

【问题讨论】:

    标签: java json firefox selenium remotewebdriver


    【解决方案1】:

    解决方案:检查 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"
        }
      ],
    

    【讨论】:

      猜你喜欢
      • 2013-09-10
      • 2011-02-05
      • 1970-01-01
      • 2012-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-27
      相关资源
      最近更新 更多