Method Close

Closes the application instance

Usage

Function Close( 
    Boolean Report [Optional],
    Boolean DontWaitForObject [Optional]
)

Application

ZAP Object step

Close

true

false

Boolean Report [Optional]

Boolean DontWaitForObject [Optional]

Parameters

Report (optional)

Type: Boolean

Default value: true

Report this step into the Test Results

DontWaitForObject (optional)

Type: Boolean

Default value: false

By default, if the application window is not found, this step will wait 45 seconds before it gives up and moves on to the next one. Set this parameter to true if you do not wish to wait until the AUT window is found

Returns

No return value

Example

VBScript

Application("Demo").Close true, false

JavaScript

Application("Demo").Close(true, false);

Comment

Close application without any parameters

Script-Less next step

Application

ZAP Object step

Close

Script-Less next step

Comment

Remove this step from report

Script-Less next step

Application

ZAP Object step

Close

false

false