EnrollServlet call fails after when grid is up
bharathc02 opened this issue · 1 comments
Selenium Stand alone server : 3.7.1
Just-ask : 1.0.3
I've started the selenium grid using the command below,
java -Dconfig.file=config.json -cp selenium-server-standalone-3.7.1.jar:just-ask-1.0.3-jar-with-dependencies.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -servlets com.rationaleemotions.servlets.EnrollServlet
Selenium Grid hub starts successfully.
When wiring in the Ghost Proxy into the hub via URL http://localhost:4444/grid/admin/EnrollServlet, it throws java.lang.IllegalStateException: There was a problem in hooking in the ghost node.
.
Entire exception grid.txt
Upon reviewing the code, I noticed that Selenium has deprecated the Registry class (link).
Just-ask is using Registry class in GhostProxy and EnrollServlet.
To fix this, both these classes must resort to using the interface GridRegistry instead of Registry
Fixed by #11