Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
集线器已关闭或未响应:用户代理值中23处的意外字符0x131:SeleniumGrid v3.14.0的selenium/3.14.0(java w²;ndows)_Java_Selenium_Selenium Webdriver_Webdriver_Selenium Grid - Fatal编程技术网

集线器已关闭或未响应:用户代理值中23处的意外字符0x131:SeleniumGrid v3.14.0的selenium/3.14.0(java w²;ndows)

集线器已关闭或未响应:用户代理值中23处的意外字符0x131:SeleniumGrid v3.14.0的selenium/3.14.0(java w²;ndows),java,selenium,selenium-webdriver,webdriver,selenium-grid,Java,Selenium,Selenium Webdriver,Webdriver,Selenium Grid,我有selenium standalone server 3.14.0,希望运行hub,然后在其上注册节点。我第一次跑得很快 java -jar selenium-server-standalone-3.14.0.jar -role hub 它工作得很好,等待节点注册。然后我运行这些命令来注册一个节点 java -jar selenium-server-standalone-3.14.0.jar -role node -hub http://localhost:4444/register/gr

我有selenium standalone server 3.14.0,希望运行hub,然后在其上注册节点。我第一次跑得很快

java -jar selenium-server-standalone-3.14.0.jar -role hub
它工作得很好,等待节点注册。然后我运行这些命令来注册一个节点

java -jar selenium-server-standalone-3.14.0.jar -role node -hub http://localhost:4444/register/grid -browser browserName=chrome,platform=WINDOWS
但它不断地给我这个错误,我无法注册任何节点

11:30:47.634 INFO [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Unexpected char 0x131 at 23 in User-Agent value: selenium/3.14.0 (java w²ndows)
我怎样才能解决这个问题

  • 我有最新版本的chrome驱动程序
此错误消息

[SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Unexpected char 0x131 at 23 in User-Agent value: selenium/3.14.0 (java w²ndows)
…表示Selenium网格节点未注册到Selenium网格中心

您的主要问题是您的基本操作系统不是英文的

解决方案 在英文版的操作系统中尝试同样的方法,命令将毫无问题地工作

  • 您可以在中找到相关的讨论
  • tl;博士

除此之外,我看不到你的命令有任何这样的问题

启动Selenium Grid Hub的命令非常完美:

java -jar selenium-server-standalone-3.14.0.jar -role hub
您应该看到以下启动日志:

C:\Utility\SeleniumGrid>java -jar selenium-server-standalone-3.14.0.jar -role hub
14:31:09.654 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.14.0', revision: 'aacccce0'
14:31:09.659 INFO [GridLauncherV3$2.launch] - Launching Selenium Grid hub on port 4444
2018-10-02 14:31:10.381:INFO::main: Logging initialized @1570ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:31:11.086 INFO [Hub.start] - Selenium Grid hub is up and running
14:31:11.087 INFO [Hub.start] - Nodes should register to http://192.168.1.5:4444/grid/register/
14:31:11.088 INFO [Hub.start] - Clients should connect to http://192.168.1.5:4444/wd/hub
C:\Utility\SeleniumGrid>java -jar selenium-server-standalone-3.14.0.jar -role node -hub http://localhost:4444/register/grid -browser browserName=chrome,platform=WINDOWS
14:38:06.877 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.14.0', revision: 'aacccce0'
14:38:06.904 INFO [GridLauncherV3$3.launch] - Launching a Selenium Grid node onport 27852
2018-10-02 14:38:07.459:INFO::main: Logging initialized @1105ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:38:07.829 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 27852
14:38:07.830 INFO [GridLauncherV3$3.launch] - Selenium Grid node is up and ready to register to the hub
14:38:08.069 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 5000 ms.
14:38:08.070 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://localhost:4444/grid/register
14:38:09.108 INFO [SelfRegisteringRemote.registerToHub] - The node is registered to the hub and ready to use
启动Selenium网格节点的命令也很完美:

java -jar selenium-server-standalone-3.14.0.jar -role node -hub http://localhost:4444/register/grid -browser browserName=chrome,platform=WINDOWS
您应该看到以下启动日志:

C:\Utility\SeleniumGrid>java -jar selenium-server-standalone-3.14.0.jar -role hub
14:31:09.654 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.14.0', revision: 'aacccce0'
14:31:09.659 INFO [GridLauncherV3$2.launch] - Launching Selenium Grid hub on port 4444
2018-10-02 14:31:10.381:INFO::main: Logging initialized @1570ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:31:11.086 INFO [Hub.start] - Selenium Grid hub is up and running
14:31:11.087 INFO [Hub.start] - Nodes should register to http://192.168.1.5:4444/grid/register/
14:31:11.088 INFO [Hub.start] - Clients should connect to http://192.168.1.5:4444/wd/hub
C:\Utility\SeleniumGrid>java -jar selenium-server-standalone-3.14.0.jar -role node -hub http://localhost:4444/register/grid -browser browserName=chrome,platform=WINDOWS
14:38:06.877 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.14.0', revision: 'aacccce0'
14:38:06.904 INFO [GridLauncherV3$3.launch] - Launching a Selenium Grid node onport 27852
2018-10-02 14:38:07.459:INFO::main: Logging initialized @1105ms to org.seleniumhq.jetty9.util.log.StdErrLog
14:38:07.829 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 27852
14:38:07.830 INFO [GridLauncherV3$3.launch] - Selenium Grid node is up and ready to register to the hub
14:38:08.069 INFO [SelfRegisteringRemote$1.run] - Starting auto registration thread. Will try to register every 5000 ms.
14:38:08.070 INFO [SelfRegisteringRemote.registerToHub] - Registering the node to the hub: http://localhost:4444/grid/register
14:38:09.108 INFO [SelfRegisteringRemote.registerToHub] - The node is registered to the hub and ready to use
网格控制台位于
http://localhost:4444/grid/console
将看起来像:

可能重复发行: