4

Is there an available API method for listing and getting information for all registered nodes for a Selenium Hub.

I can use /grid/api/proxyid=nodeurl:5555 to get a particular nodes information, but can't seem to find a way to list all available nodes.

I've seen a function in the source "getAllProxies" but don't see an api implementation of this.

Any help would be appreciated.

kushan-
  • 168
  • 1
  • 7

2 Answers2

4

There's an open ticket for this. In the meanwhile, you can build and contribute your own servlet. I've done this to provide a customized version of this API for node monitoring within Mogotest.

nirvdrum
  • 2,319
  • 17
  • 26
  • Has there been any update on the ticket? Do you happen to have the ticket number? I'd love to check the status. I'd like to have a better option than navigating to the grid hub url and scrape text from the screen. – Anton May 03 '17 at 15:07
  • 2
    Do you have the ticket number or link? – Anton May 03 '17 at 15:37
  • Sorry. I'm not sure why I never linked the ticket -- that's unlike me. But in the meantime Selenium has transitioned from Google Code to GitHub and the old issue track seems inaccessible. The issues were [imported](https://github.com/SeleniumHQ/selenium-google-code-issue-archive/), but I couldn't readily find the issue. You're probably better off opening a new issue against the GitHub project. – nirvdrum Aug 11 '17 at 15:37
0

You can build yourself a Selenium powered method which checks

http://localhost:4444/grid/console

and lists all nodes and possible sessions

Shouldn't be that hard

Franz Ebner
  • 4,951
  • 3
  • 39
  • 57