fbpx

Method SetWindowState

Set the state of the AUT window if possible

Usage

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

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo