Get Details of a Node

By passing the Grid ID or name of the required browser grid to the get_grid_nodes() SDK method, you can get the details of a node in that grid.

Info: To use this SDK method, you need intialize it with Admin scope. You can learn more about this requirement from this section

Using the Grid ID

You can pass the Grid ID of the required browser grid to the get_grid_nodes() SDK method, to get its node details. The grid instance used in the following snippet is the component reference.

copy
node_details = grid.get_grid_nodes(3970000000005013)  # get details of the node using its Grid ID
print(node_details)

Using the Grid’s Name

You can pass the name of the required browser grid to the get_grid_nodes() SDK method, to get its node details. The grid instance used in the following snippet is the component reference.

copy
node_details = grid.get_grid_nodes("Selenium_Grid")  # get details of the node using the grid's name
print(node_details)

Last Updated 2025-12-16 10:31:39 +0530 IST