Method SetWindowLocation
Sets the location for the AUT windowUsage
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
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Use default values