Method SystemUtil.ProcessId

Gets the unique identifier for the associated process

Usage

Function ZAP.SystemUtil.ProcessId()

ZAP Utility

ZAP Utility step

ZAP...ProcessId

processId

Output Parameter

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

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.SystemUtil.Run

firefox.exe

Script-Less next step

ZAP Utility

ZAP Utility step

Zap...ProcessId

processId