Method SystemUtil.ProcessId
Gets the unique identifier for the associated processUsage
Function ZAP.SystemUtil.ProcessId()
Parameters
This method does not take parameters
Returns
The system-generated unique identifier of the process
Example
VBScript
Zap.SystemUtil.Run "firefox.exe"
msgbox Zap.SystemUtil.ProcessId
JavaScript
Zap.SystemUtil.Run("firefox.exe");
alert(Zap.SystemUtil.ProcessId());
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
Run Firefox browser and save its process ID to variable