set, window, view, location, position, scriptless, script-less, scripted, step, view, stepview

Method setWindowLocation

Sets the location for the AUT window

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function setWindowLocation( 
        Integer Left [Optional],
        Integer Top [Optional]
)

Application

setWindowLocation

100

100

Left

Top

Parameters

Left (optional)

Type: Integer

Default value: -1

Left position of the window (X)

If parameter not set - location will not change

Top (optional)

Type: Integer

Default value: -1

Top position of the window (Y)

If parameter not set - location will not change

Returns

No return value

Example

VBScript

'Method without parameters will not change window location
Application("Demo").setWindowLocation
'Change window location
Application("Demo").setWindowLocation 100, 100

JavaScript

// Method without parameters will not change window location
Application("Demo").setWindowLocation();
// Change window location
Application("Demo").setWindowLocation(100, 100);

Comment

Use default values

Application

setWindowLocation

Comment

Set optional parameters

Application

setWindowLocation

100

100

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227