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
    }
    }

  • 相关阅读:
    getchar,putchar函数
    强制类型转换和整数常量的数据类型及转换
    c语言整型的隐式数据 类型转换
    c语言整型数据输出格式声明
    c语言整型变量的储存空间,以及所表示的整数范围
    c语言常量
    c语言求回文数
    Android4.0源码目录结构详解
    MTK Android源代码目录
    Comparator 和 Comparable
  • 原文地址:https://www.cnblogs.com/lgm1999/p/4707300.html
Copyright © 2011-2022 走看看