zoukankan      html  css  js  c++  java
  • Selenium Grid 运行报错 Exception thrown in Navigator.Start first time ->Error forwarding the new session Empty pool of VM for setup Capabilities

    Selenium Grid 运行报错 :

     Exception thrown in Navigator.Start first time ->Error forwarding the new session Empty pool of VM for setup Capabilities [{platform=WINDOWS, ensureCleanSession=true, ignoreProtectedModeSettings=true, ignoreZoomSetting=true, enablePersistentHover=false, ie.ensureCleanSession=true, requireWindowFocus=false, browserName=internet explorer, nativeEvents=false, version=10}]

    找到原因:在node启动Selenium时的json文件配置不对,IE版本比较固定,在配置里要指定版本。在node.json中要有"version":"8",

    {
    "capabilities":
    [
    {
    "browserName": "*firefox",
    "maxInstances": 5,
    "seleniumProtocol": "Selenium"
    },
    {
    "browserName": "*googlechrome",
    "maxInstances": 5,
    "seleniumProtocol": "Selenium"
    },
    {
    "browserName": "*iexplore",
    "version":"8",
    "maxInstances": 1,
    "seleniumProtocol": "Selenium"
    },
    {
    "browserName": "firefox",
    "maxInstances": 5,
    "seleniumProtocol": "WebDriver"
    },
    {
    "browserName": "chrome",
    "maxInstances": 5,
    "seleniumProtocol": "WebDriver"
    },
    {
    "browserName": "internet explorer",
    "version":"8",
    "maxInstances": 1,
    "seleniumProtocol": "WebDriver"
    }
    ],
    "configuration":
    {
    "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
    "maxSession": 5,
    "port": 5555,
    "host": ip,
    "register": true,
    "registerCycle": 5000,
    "hubPort": 4444,
    "hubHost": ip
    }
    }

  • 相关阅读:
    poj 4005 Moles
    牛客 2C 圈圈
    牛客 2B 树 (组合计数)
    AC日记——校门外的树(增强版) 洛谷 P1276
    AC日记——寻找道路 洛谷 P2296
    AC日记——挤牛奶 洛谷 P1204
    AC日记——最大数 洛谷 P1198 [JSOI2008]
    AC日记——中位数 洛谷 P1168
    AC日记——校门外的树 洛谷 P1047
    AC日记——约瑟夫问题 codevs 1282
  • 原文地址:https://www.cnblogs.com/lgm1999/p/4707300.html
Copyright © 2011-2022 走看看