我试图在我设置的selenium hub上指出一些测试,并且我遇到了浏览器配置/功能的一些可能问题。
当我查看我在minikube中设置的Hub Pod的日志时,我看到以下消息(多次,测试脚本重试几次然后放弃并显示失败状态)
16:26:14.221 INFO - Got a request to create a new session: Capabilities [{loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@5a4fa56e, timeZone=Greenwich, unhandledPromptBehavior=ignore, version=47, platform=ANY, public=share, acceptSslCerts=true, name=dockerdev : Web UI Smoke test, browserName=firefox, idle-timeout=90, platformName=ANY, maxDuration=1800, firefox_profile=UEsDBBQACAgIAEeDM0sAAAAAAAAAA..., unexpectedAlertBehaviour=ignore}]
16:26:14.222 INFO - Error forwarding the new session cannot find : Capabilities [{loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@4790a536, timeZone=Greenwich, unhandledPromptBehavior=ignore, version=47, platform=ANY, public=share, acceptSslCerts=true, name=dockerdev : Web UI Smoke test, browserName=firefox, idle-timeout=90, platformName=ANY, maxDuration=1800, firefox_profile=UEsDBBQACAgIAEeDM0sAAAAAAAAAA..., unexpectedAlertBehaviour=ignore}]
org.openqa.grid.common.exception.CapabilityNotPresentOnTheGridException: cannot find : Capabilities [{loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@4790a536, timeZone=Greenwich, unhandledPromptBehavior=ignore, version=47, platform=ANY, public=share, acceptSslCerts=true, name=dockerdev : Web UI Smoke test, browserName=firefox, idle-timeout=90, platformName=ANY, maxDuration=1800, firefox_profile=UEsDBBQACAgIAEeDM0sAAAAAAAAAA..., unexpectedAlertBehaviour=ignore}]
at org.openqa.grid.internal.ProxySet.verifyAbilityToHandleDesiredCapabilities(ProxySet.java:180)
at org.openqa.grid.internal.Registry.addNewSessionRequest(Registry.java:224)
at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:103)
at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:84)
at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:841)
at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:535)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.seleniumhq.jetty9.server.Server.handle(Server.java:564)
at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:317)
at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.seleniumhq.jetty9.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.seleniumhq.jetty9.io.FillInterest.fillable(FillInterest.java:110)
at org.seleniumhq.jetty9.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:748)
当我查看我的一个firefox pod的配置时,我看到以下内容:
Capabilities [{seleniumProtocol=WebDriver, acceptSslCerts=true, screen-resolution=1900x1880, tz=Greenwich, browserName=firefox, maxInstances=1, screenResolution=1900x1880, resolution=1900x1880, version=55.0.3, platform=LINUX}]
我想也许版本控制可能是我的问题,因为firefox pod是55.0.3,请求的功能显示47,但我不确定还有什么问题。我应该查看有关我的问题的更多详细信息?
作为参考,我的中心看起来像this