zoukankan      html  css  js  c++  java
  • node config

    @echo off
    title node_5560
    cd /d %~dp0
    java -jar selenium-server-standalone-2.48.2.jar ^
    -role node ^
    -Dwebdriver.ie.driver="IEDriverServer.exe" ^
    -Dwebdriver.chrome.driver="chromedriver2.25.exe" ^
    -Dwebdriver.firefox.bin="D:programfirefoxfirefox.exe" ^
    -nodeConfig nodeconfig.json
    pause

    如果不加 -Dwebdriver.ie.driver,也可以把Driver放到path中。

    下面是nodeconfig.json

    {
    	"capabilities":
    	  [
    		  {
                 "seleniumProtocol": "Selenium",
                 "browserName": "*firefox",
    		     "maxInstances":5
              },
    		  {
    			 "seleniumProtocol": "WebDriver",
                 "browserName": "firefox",
    		     "maxInstances":5
    		  },
              {
                 "seleniumProtocol": "WebDriver",
                 "browserName": "internet explorer",
    		     "maxInstances":3
              },
              {
                 "seleniumProtocol": "WebDriver",
                 "browserName": "chrome",
    		     "maxInstances":3
              },
    	      {
                 "browserName": "*iexplore",
                 "seleniumProtocol": "Selenium",
    		     "maxInstances":3
              },
    		  {
                 "browserName": "internet explorer",
                 "seleniumProtocol": "WebDriver",
    		     "maxInstances":3
              }
           ],
       "configuration":
       {
         "proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
         "maxSession":10,
         "port": 5560,
         "host": "10.57.130.193",
         "register": true,
         "registerCycle": 3000,
    	 "hubHost":"10.57.130.193",
    	 "hub":"http://10.57.130.193:4444/grid/register",
    	 "hubPort":4444,
    	 "nodeStatusCheckTimeout":3500
       }
    }
    

      

  • 相关阅读:
    webDriver检索table数据
    C# 遍历枚举
    Java——Iterate through a HashMap
    Java——Read/convert an InputStream to a String
    简单的异步HTTP服务端和客户端
    授信主体查找
    mysql 事务测试
    mysql 替换
    如何查看由EF生成的SQL?
    C# 如何用多字符分割字符串
  • 原文地址:https://www.cnblogs.com/lgm1999/p/6248699.html
Copyright © 2011-2022 走看看