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.
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 stopGrid() SDK method, to stop the grid, and terminate all its executions. The grid instance used in the following snippet is the component reference.
copy
const gridTerminate = await grid.stopGrid("3970000000005013"); // 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.
copy
const gridTerminate = await grid.stopGrid("Selenium_Grid"); // stop the grid using the name of the grid
Example of Expected Response
copy
{
"status": "success",
"data": true
}
Last Updated 2025-12-16 10:31:39 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit