Method SetWindowSize
Sets the size of the AUT window if possibleUsage
Function setWindowSize(
Integer Width [Optional],
Integer Height [Optional]
)
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