Method SetWindowState
Set the state of the AUT window if possibleUsage
Function SetWindowsState(
Integer WindowState
)
Parameters
WindowState
Type: Integer
Window state or command of ShowWindow WinAPI method.
States:
- Normal = 5
- Maximized = 3
- Minimized = 2
Or use ZAP.WindowStates type
Returns
No return value
Example
VBScript
' Make Application window maximized
Application("Demo").SetWindowState Zap.WindowState.Maximized
JavaScript
// Make Application window maximized
Application("Demo").SetWindowState(Zap.WindowState.Maximized);
Comment
Make application window Maximized