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

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

Application

setWindowSize

Comment

Set width and height

Application

setWindowSize

500

500

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227