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());
Comment
Run Firefox browser and save its process ID to variable