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);
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
Make application window Maximized