fbpx

Type WindowStates

WindowStates enumeration type provides WinAPI ShowWindow function values. It can be used in SetWindowState method

Usage

Type ZAP.WindowStates

Parameters

Maximized

Maximizes the specified window

Minimized

Activates the window and displays it as a minimized window

Normal

Activates the window and displays it in its current size and position

Returns

Example

VBScript

' Set window state maximized
Application("Demo").SetWindowState Zap.WindowStates.Maximized

JavaScript

// Set window state maximized
Application("Demo").SetWindowState(Zap.WindowStates.Maximized);

Documentation Categories

benefits UI testing and rpa

ZAPTEST

Manual testing tools, vs. automation, checklists and more

FARM

LOAD