C# Selenium Grid2端口不仅在端口4444上工作
我已经建立了Selenium Grid2,我有一个让我发疯的两难选择 如果我在默认端口(4444)启动集线器,出于某种原因,我的所有HTTP请求都会重定向到一个页面,该页面显示 您正在使用网格。0.0在上查找帮助 官方SeleniumWiki:更多帮助 这里 这在所有浏览器和任何连接到internet的应用程序中都会发生 如果我将端口更改为其他端口,则不会出现问题,但Internet Explorer(特别是IE8)中的测试将不再有效。他们失败了,错误是找不到元素 非网格设置也会发生这种情况,只使用服务器(selenium-server-standalone-2.0rc3.jar),除了网格消息之外,所有HTTPS连接都不受信任C# Selenium Grid2端口不仅在端口4444上工作,c#,selenium-grid2,C#,Selenium Grid2,我已经建立了Selenium Grid2,我有一个让我发疯的两难选择 如果我在默认端口(4444)启动集线器,出于某种原因,我的所有HTTP请求都会重定向到一个页面,该页面显示 您正在使用网格。0.0在上查找帮助 官方SeleniumWiki:更多帮助 这里 这在所有浏览器和任何连接到internet的应用程序中都会发生 如果我将端口更改为其他端口,则不会出现问题,但Internet Explorer(特别是IE8)中的测试将不再有效。他们失败了,错误是找不到元素 非网格设置也会发生这种情况,只
有什么想法吗?这是获取“/”资源时得到的页面。但你所关心的任何页面几乎肯定都位于另一个上下文中。以下是中心代码的相关部分:
root.addServlet(“/*”,DisplayHelpServlet.class.getName())
您的节点是否连接到正确的URL?它们应该从
-hub
之类的东西开始,以便正确注册。是的,我也用最新编译版本试用过,结果相同,所以我在家试用过,即使使用其他端口,效果也很好。也许是防火墙?不知道如何找到问题我也有同样的问题。但我没有在家尝试。但我在rc3版本中没有这个问题。只有在最新的编译版本中才有,这就是我注册节点的方式。我不想让它倒霉,但我认为最新版本(2.0.0)解决了这个问题
root.addServlet("/grid/console/*", ConsoleServlet.class.getName());
root.addServlet("/grid/register/*", RegistrationServlet.class.getName());
// TODO remove at some point. Here for backward compatibility of
// tests etc.
root.addServlet("/grid/driver/*", DriverServlet.class.getName());
root.addServlet("/wd/hub/*", DriverServlet.class.getName());
root.addServlet("/selenium-server/driver/*", DriverServlet.class.getName());
root.addServlet("/grid/resources/*", ResourceServlet.class.getName());
root.addServlet("/grid/api/proxy/*", ProxyStatusServlet.class.getName());
root.addServlet("/grid/api/testsession/*", TestSessionStatusServlet.class.getName());
// Selenium Grid 1.0 compatibility routes for older nodes trying to
// work with the newer hub.
root.addServlet("/registration-manager/register/*", RegistrationServlet.class.getName());
root.addServlet("/heartbeat", Grid1HeartbeatServlet.class.getName());