Get Details of a Node
By passing the Grid ID or name of the required browser grid to the getGridNodes() 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 getGridNodes() SDK method, to get its node details. The grid instance used in the following snippet is the component reference.
Ensure you import the following packages
copy
import com.zc.component.smartbrowz.*;
copy
ZCBrowserGrid nodeDetails = grid.getGridNodes(3970000000005013l); // get details of the node using its Grid ID
Using the Grid’s Name
You can pass the name of the required browser grid to the getGridNodes() SDK method, to get its node details. The grid instance used in the following snippet is the component reference.
Ensure you import the following packages
copy
import com.zc.component.smartbrowz.*;
copy
ZCBrowserGrid gridDetails = grid.getGridNodes("Selenium_Grid"); // get details of the node using the grid's name
Last Updated 2025-12-16 10:31:39 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit