Method Close
Closes the application instanceUsage
Function Close(
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);
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 application without any parameters