fbpx

Method SetWindowLocation

Sets the location for the AUT window

Usage

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

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

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo