This action sets the size and position of the window if it is a top-level window or an MDI-child window.
TestObj.Position(Left, Top, Width, Height)
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The method is applied to the following objects:
The method has the following parameters:
Specifies the desired horizontal coordinate of the window’s left edge. This coordinate is relative to the screen.
Specifies the desired vertical coordinate of the window’s top. This coordinate is relative to the screen.
Specifies the desired width of the window in pixels.
Specifies the desired height of the window in pixels.
This action has no effect on popup windows and controls, except that an error message is inserted into the test log.
To view an example that demonstrates how to use the
Position method, see Simulating User Actions on Application Windows.