kushan-
kushan-

Reputation: 168

selenium grid - api for listing all available nodes

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.

Upvotes: 4

Views: 4526

Answers (2)

nirvdrum
nirvdrum

Reputation: 2319

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.

Upvotes: 4

Franz Ebner
Franz Ebner

Reputation: 5096

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

Upvotes: 0

Related Questions