groupon / Selenium-Grid-Extras

Simplify the management of the Selenium Grid Nodes and stabilize said nodes by cleaning up the test environment after the build has been completed
BSD 3-Clause "New" or "Revised" License
537 stars 210 forks source link

com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet] cannot be instantiated #401

Open jasontseu1983 opened 6 years ago

jasontseu1983 commented 6 years ago

Hi,

I am unable to enable the servlet in Selenium Grid 3.11, Window 10

WARN [ExtraServletUtil.createServlet] - The specified class : com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet] cannot be instantiated com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet]

andmia commented 6 years ago

Seems to be working with webdriver 3.9.0 but not with webdriver 3.10.0 and 3.11.0.

Running the hub with Selenium Grid Extras 2.0.2 on a Ubuntu 16.04.3 LTS:

/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar "/opt/selenium/jars/SeleniumGridExtras-2.0.2-SNAPSHOT-jar-with-dependencies.jar"

Grid extras config file:

"webdriver": { "version": "3.11.0" }, "hub_additional_classpath": ["/opt/selenium/jars/extension-proxy-1.0.jar"]

Hub json file with HubRequestsProxyingServlet needed for Sikuli with Selenium Grid:

"servlets": ["com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet","io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet"], "capabilityMatcher": "io.sterodium.extensions.capability.CustomCapabilityMatcher",

Hub log with webdriver 3.11.0:

10:29:56.657 INFO [GridLauncherV3.launch] - Selenium build info: version: '3.11.0', revision: 'e59cfb3' 10:29:56.664 INFO [GridLauncherV3$2.launch] - Launching Selenium Grid hub on port 4444 10:29:56.721 WARN [ExtraServletUtil.createServlet] - The specified class : [com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet cannot be instantiated [com/groupon/seleniumgridextras/grid/servlets/ProxyStatusJsonServlet 10:29:56.722 WARN [ExtraServletUtil.createServlet] - The specified class : io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet] cannot be instantiated io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet] 10:29:56.722 WARN [ExtraServletUtil.createServlet] - The specified class : [com.groupon.seleniumgridextras.grid.servlets.ProxyStatusJsonServlet cannot be instantiated [com/groupon/seleniumgridextras/grid/servlets/ProxyStatusJsonServlet 10:29:56.723 WARN [ExtraServletUtil.createServlet] - The specified class : io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet] cannot be instantiated io.sterodium.extensions.hub.proxy.HubRequestsProxyingServlet]