Selenium Grid node dropping/reconnecting every 30 seconds, Error: "DefaultRemoteProxy unknown version" in the console

Selenium Grid node dropping/reconnecting every 30 seconds, Error: "DefaultRemoteProxy unknown version" in the console

我正在尝试编写一些 selenium 网格 (3.0.1) 测试并使用 VirtualBox Windows VM 来测试框架。我可以毫无问题地将集线器连接到同一台机器上的节点(Mac 或 Windows、虚拟机或真实机器)。我还可以将我的 Mac 连接到同事的 windows 机器,而不会掉线。但是,当我将 Mac 连接到 Windows VM(运行 VirtualBox,如果有帮助的话)。该节点每 30 秒左右断开一次连接。另外,当我登录到控制台时,我在节点上看到此错误消息:http://imgur.com/a/Rmwt3。下面是日志的片段,用于查看 connection/reconnection 发生的频率。我需要能够对其进行设置,以便在将它们用于生产之前编写测试。谢谢!

13:19:41.978 INFO - Registered a node http://10.0.2.15:5555
13:20:12.001 INFO - Marking the node http://10.0.2.15:5555 as down: cannot reach the node for 2 tries.
13:21:12.063 INFO - Unregistering the node http://10.0.2.15:5555 because it's been down for 60062 milliseconds
13:21:12.063 WARN - Cleaning up stale test sessions on the unregistered node http://10.0.2.15:5555
13:21:12.461 INFO - Registered a node http://10.0.2.15:5555
13:21:42.481 INFO - Marking the node http://10.0.2.15:5555 as down: cannot reach the node for 2 tries
13:22:42.520 INFO - Unregistering the node http://10.0.2.15:5555 because it's been down for 60038 milliseconds
13:22:42.520 WARN - Cleaning up stale test sessions on the unregistered node http://10.0.2.15:5555
13:22:42.945 INFO - Registered a node http://10.0.2.15:5555

像往常一样,我研究了 2 天,post 到 SO,然后在一小时后找到答案。原来 VirtualBox VM 的网络适配器设置为 NAT。将其更改为桥接解决了这个问题。去搞清楚。