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

ZAP Object step

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

Script-Less next step

Application

ZAP Object step

setWindowLocation

Script-Less next step

Comment

Set optional parameters

Script-Less next step

Application

ZAP Object step

setWindowLocation

100

100

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552