Action
Closes the console.
Availability
This functionality is supported only if you are using the Open Agent.
Syntax
Console.CloseWindow (sItemIdentifier)
Variable
|
Description
|
sItemIdentifier
|
The index of the console window or the caption of the window. If this parameter is left blank,
Silk Test Classic closes the first found console window.
STRING.
|
Example 1
The following sample shows how you can use the index to close the second console window:
Console.CloseWindow(2)
Example 2
The following sample shows how you can use the full identifier of a console window to close the second console window:
Console.CloseWindow("C:\\Windows\\system32\\cmd.exe[1]")