集线器已关闭或未响应:用户代理值中的 23 处出现意外字符 0x131:selenium/3.14.0 (java w²ndows) with SeleniumGrid v3.14.0
The hub is down or not responding: Unexpected char 0x131 at 23 in User-Agent value: selenium/3.14.0 (java w²ndows) with SeleniumGrid v3.14.0
我有 selenium 独立服务器 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.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.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 Grid Node 未注册到 Selenium Grid Hub.
您的主要问题是您的基础操作系统不是英语。
解决方案
在 英语 版本的 操作系统 中尝试相同的操作,这些命令将毫无问题地运行。
- 您可以在
中找到相关讨论
- 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.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
您启动 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 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.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.launch] - Selenium Grid node is up and ready to register to the hub
14:38:08.069 INFO [SelfRegisteringRemote.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
的 Grid Console 将如下所示:
我有 selenium 独立服务器 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.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.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 Grid Node 未注册到 Selenium Grid Hub.
您的主要问题是您的基础操作系统不是英语。
解决方案
在 英语 版本的 操作系统 中尝试相同的操作,这些命令将毫无问题地运行。
- 您可以在
- 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.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
您启动 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 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.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.launch] - Selenium Grid node is up and ready to register to the hub
14:38:08.069 INFO [SelfRegisteringRemote.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
的 Grid Console 将如下所示: