Method SystemUtil.CloseProcessByWndTitle
Closes process by window titleUsage
Function ZAP.SystemUtil.CloseProcessByWndTitle (
String Title,
Boolean BRegularExpression [Optional],
Boolean CloseAll [Optional]
)
Parameters
Title
Type: String
Window title
BRegularExpression (optional)
Type: Boolean
Default value: false
Option: is the title a regular expression
CloseAll (optional)
Type: Boolean
Default value: false
Option to close all processes with given parameters
Returns
No return value
Example
VBScript
Zap.SystemUtil.CloseProcessByWndTitle "Google Chrome", false, false
JavaScript
Zap.SystemUtil.CloseProcessByWndTitle("Google Chrome", false, 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 process with window title "Google Chrome"