Method SystemUtil.CloseProcessByName
Closes process by given nameUsage
Function ZAP.SystemUtil.CloseProcessByName (
String ProcessName,
Boolean CloseAllMatches [Optional]
)
Parameters
ProcessName
Type: Integer
Process name
CloseAllMatches (optional)
Type: Boolean
Default value: false
Option to close All processes with given name
Returns
No return value
Example
VBScript
Zap.SystemUtil.CloseProcessByName "Google Chrome", false
JavaScript
Zap.SystemUtil.CloseProcessByName("Google Chrome", false);
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Close "Google Chrome" process