ConsoleClass.
Returns the contents of the console.
This functionality is supported only if you are using the Open Agent.
lsContents = Console.GetContentsOfWindow (sItemIdentifier)
Variable | Description |
---|---|
lsContents | The console contents. LIST OF STRING. |
sItemIdentifier | The index of the console window or the caption of the window. If this parameter is left blank, Silk Test Classic returns the contents of the first found console window. STRING |
lsContents = Console.GetContentsOfWindow(2)
lsContents = Console.GetContentsOfWindow("C:\\Windows\\system32\\cmd.exe[1]")