0

我已经使用 Remote WebDriver 成功设置了 Selenium GRID,它在本地使用它而不连接到远程节点时运行良好。如果集线器和节点都在同一台机器上,它运行良好,但运行远程节点只会打开浏览器而不运行实际测试。我在这个环境中运行它 - Windows 8(集线器),远程和本地节点都是 Windows 8。

这是一个简单的测试:

driver = new RemoteWebDriver(new Uri("http://MYIPADDRESS:4466/wd/hub"), DesiredCapabilities.Firefox());
            driver.Navigate().GoToUrl("https://www.bing.com");

当我调试时,我一直收到这个错误 -Additional information: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

我很惊讶想要连接到 localhost,因为我使用的不是 localhost 而是 IP 地址。我如何让它运行?

4

0 回答 0