首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在哪里可以找到selenium集线器和节点配置文件的所有可用属性的列表?

在哪里可以找到selenium集线器和节点配置文件的所有可用属性的列表?
EN

Stack Overflow用户
提问于 2020-01-24 23:01:49
回答 1查看 297关注 0票数 1

我使用selenium-grid,我很难找到任何列出我可以在配置文件(中心或节点)中定义的所有属性或属性的wiki/网站。

我在网上找到了很多主题,但要么链接是过时的,要么是过时的(比如在selenium.dev网站上……https://selenium.dev/documentation/en/grid/setting_up_your_own_grid/#configuration-of-node-with-json),或者不解释每个属性实用程序。

有谁知道有这些信息的网站吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-01-24 23:10:11

经过几天的努力,我在我的问题5分钟后找到了答案……

具体操作方法如下:

代码语言:javascript
复制
java -jar ./selenium/selenium-server-standalone-3.141.59.jar -role node -help

以及参数列表(如果有人也搜索了这些参数):

代码语言:javascript
复制
Options:
--debug, -debug
  <Boolean> : enables LogLevel.FINE.
  Default: false
--version, -version
  Displays the version and exits.
  Default: false
-browserTimeout
  <Integer> in seconds : number of seconds a browser session is allowed to 
  hang while a WebDriver command is running (example: driver.get(url)). If 
  the timeout is reached while a WebDriver command is still processing, 
  the session will quit. Minimum value is 60. An unspecified, zero, or 
  negative value means wait indefinitely. If a node does not specify it, 
  the hub value will be used.
-capabilities, -browser
  <String> : comma separated Capability values. Example: -capabilities 
  browserName=firefox,platform=linux -capabilities 
  browserName=chrome,platform=linux 
-cleanUpCycle
  <Integer> in ms : specifies how often the hub will poll running proxies 
  for timed-out (i.e. hung) threads. Must also specify "timeout" option
-custom
  <String> : comma separated key=value pairs for custom grid extensions. 
  NOT RECOMMENDED -- may be deprecated in a future revision. Example: 
  -custom myParamA=Value1,myParamB=Value2
-downPollingLimit
  <Integer> : node is marked as "down" if the node hasn't responded after 
  the number of checks specified in [downPollingLimit].
-enablePlatformVerification
  <Boolean>: Whether or not to drop capabilities that does not belong to 
  the current platform family. Defaults to true.
-host
  <String> IP or hostname : usually determined automatically. Most 
  commonly useful in exotic network configurations (e.g. network with VPN)
-hub
  <String> : the url that will be used to post the registration request. 
  This option takes precedence over -hubHost and -hubPort options.
-hubHost
  <String> IP or hostname : the host address of the hub we're attempting 
  to register with. If -hub is specified the -hubHost is determined from 
  it. 
-hubPort
  <Integer> : the port of the hub we're attempting to register with. If 
  -hub is specified the -hubPort is determined from it.
-id
  <String> : optional unique identifier for the node. Defaults to the url 
  of the remoteHost, when not specified.
-jettyThreads, -jettyMaxThreads
  <Integer> : max number of threads for Jetty. An unspecified, zero, or 
  negative value means the Jetty default value (200) will be used.
-log
  <String> filename : the filename to use for logging. If omitted, will 
  log to STDOUT
-maxSession
  <Integer> max number of tests that can run at the same time on the node, 
  irrespective of the browser used
-nodeConfig
  <String> filename : JSON configuration file for the node. Overrides 
  default values
-nodePolling
  <Integer> in ms : specifies how often the hub will poll to see if the 
  node is still responding.
-nodeStatusCheckTimeout
  <Integer> in ms : connection/socket timeout, used for node "nodePolling" 
  check. 
-port
  <Integer> : the port number the server will use.
-proxy
  <String> : the class used to represent the node proxy. Default is 
  [org.openqa.grid.selenium.proxy.DefaultRemoteProxy]. 
-register
  if specified, node will attempt to re-register itself automatically with 
  its known grid hub if the hub becomes unavailable.
-registerCycle
  <Integer> in ms : specifies how often the node will try to register 
  itself again. Allows administrator to restart the hub without restarting 
  (or risk orphaning) registered nodes. Must be specified with the 
  "-register" option.
-remoteHost
  <String> URL: Address to report to the hub. Used to override default 
  (http://<host>:<port>). 
-role
  <String> options are [hub], [node], or [standalone].
-servlet, -servlets
  <String> : list of extra servlets the grid (hub or node) will make 
  available. Specify multiple on the command line: -servlet 
  tld.company.ServletA -servlet tld.company.ServletB. The servlet must 
  exist in the path: /grid/admin/ServletA /grid/admin/ServletB
-timeout, -sessionTimeout
  <Integer> in seconds : Specifies the timeout before the server 
  automatically kills a session that hasn't had any activity in the last X 
  seconds. The test slot will then be released for another test to use. 
  This is typically used to take care of client crashes. For grid hub/node 
  roles, cleanUpCycle must also be set. If a node does not specify it, the 
  hub value will be used.
-unregisterIfStillDownAfter
  <Integer> in ms : if the node remains down for more than 
  [unregisterIfStillDownAfter] ms, it will stop attempting to re-register 
  from the hub.
-withoutServlet, -withoutServlets
  <String> : list of default (hub or node) servlets to disable. Advanced 
  use cases only. Not all default servlets can be disabled. Specify 
  multiple on the command line: -withoutServlet tld.company.ServletA 
  -withoutServlet tld.company.ServletB
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59898984

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档