简体   繁体   English

从Eclipse启动RemoteWebDriver测试时出错

[英]Error launching RemoteWebDriver test from Eclipse

I get the following message in the Eclipse console: 我在Eclipse控制台中收到以下消息:

unable to create selected WebDriver; 无法创建选定的WebDriver; exiting early. 早退。 org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : {platform=ANY, browserName=firefox, version=} org.openqa.selenium.WebDriverException:转发新会话时出错:{platform = ANY,browserName = firefox,version =}

Solution: check the nodeConfig.json file and confirm that the intended browser is included in the capabilities object. 解决方案:检查nodeConfig.json文件并确认功能对象中包含预期的浏览器。 In this problem, the "firefox" name:value pairs were missing. 在此问题中,缺少“ firefox”名称:值对。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM