0

In Selenium Grid 3 (hosted On-Prem) we were able to get the Test Node url using a Get Request like "http://10.10.10.10:4444/grid/api/testsession?session=9f7d1d2bbc26720fe69e869ae9ef1c56" which would return the Node url.

We have since migrated to Selenium Grid 4 which is now Dockerised and hosted on K8s. The issue is when we try and do the same request to the new site we get an "Unknown Command" error with messages:

"unable to find handler (get)"

or

"Cannot call non W3C Standard command while in W3C mode".

We have tried the below calls as suggested online but no luck with any

Have also tried with the port but it really doesn't like that, request won't even be made.

Would anyone know if we can make Requests to Selenium Grid 4 to get Test Node Url's and possible requests to try?

1 Answer 1

0

Now you can get /status endpoint of your hub. It will return you a JSON object.

So you will just parse what you need. Find the example output here https://ctxt.io/2/AACQ95aVFA for sessionId = 2eecded19bcff7aea960a598b6628aed

Sign up to request clarification or add additional context in comments.

2 Comments

when you try and parse the json to get the uri based off sessionId we just get error message when try to get the value within the slots section "cannot access child value on newtownsoft.json.linq.value". Have tried many ways adding null checks without any luck. Is there specific code for this or a way to return only the node section based on sessionId?
Was able to use selenium.dev/documentation/grid/advanced_features/… endpoints here. This specific endpoint gives the uri back selenium.dev/documentation/grid/advanced_features/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.