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

  • 相关阅读:
    cd /etc/init.d查看centos下自己注册的服务
    添加提前闭合标签 之后添加js可以执行js
    networkinterface 获取本机ip
    docker学习遇到的问题
    乌班图安装
    c3p0连接错误 An attempt by a client to checkout a Connection has timed out.
    【Spring开发】—— Spring注入静态变量
    mysql命令行导入导出
    IE8下不支持console.log()
    菜鸟教程
  • 原文地址:https://www.cnblogs.com/lgm1999/p/4707300.html
Copyright © 2020-2023  润新知