Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Method SetWindowSize

Sets the size of the AUT window if possible

Usage

Function setWindowSize( 
        Integer Width [Optional],
        Integer Height [Optional]
)

Parameters

Width (optional)

Type: Integer

Default value: 0

Sets width of the window

If parameter not set - width will not change

Height (optional)

Type: Integer

Default value: 0

Sets height of the window

If parameter not set - height will not change

Returns

No return value

Example

VBScript

'Method without parameters will not change window size
Application("Demo").setWindowSize
'Set width and height
Application("Demo").setWindowSize 500, 500

JavaScript

// Method without parameters will not change window size
Application("Demo").setWindowSize();
// Set width and height
Application("Demo").setWindowSize(500, 500);

Documentation Categories

ZAPTEST

FARM

LOAD