Stop the Browser Grid
By passing the Grid ID or name of the required browser grid to the stopGrid() SDK method, you can terminate all executions and stop the browser grid.
Using the Grid ID
You can pass the Grid ID of the required browser grid to the stopGrid() SDK method, to stop the grid, and terminate all its executions. The grid instance used in the following snippet is the component reference.
Ensure you import the following packages
import com.zc.component.smartbrowz.*;
ZCBrowserGrid gridTerminate = grid.stopGrid(3970000000005013l); // stop the grid using the Grid ID
Using the Grid’s Name
You can pass the name of the required browser grid to the stopGrid() SDK method, to stop the grid, and terminate all its executions. The grid instance used in the following snippet is the component reference.
Ensure you import the following packages
import com.zc.component.smartbrowz.*;
ZCBrowserGrid gridTerminate = grid.stopGrid("Selenium_Grid"); //stop the grid using the name of the grid
Example of Expected Response
{
"status": "success",
"data": true
}
Last Updated 2025-12-16 10:31:39 +0530 IST
Yes
No
Send your feedback to us