set, window, view, size, width, height, bounds, resize

Method setWindowSize

Sets the size of the AUT window if possible

Watch this video to learn how to use this method

Have a problem with playback?

Usage

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

Application

ZAP Object step

setWindowSize

500

500

Width

Height

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);

Comment

Method without parameters will not change window size

Script-Less next step

Application

ZAP Object step

setWindowSize

Script-Less next step

Comment

Set width and height

Script-Less next step

Application

ZAP Object step

setWindowSize

500

500

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552