|This method is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This method can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.
The logical position of a two-dimensional slider is specified by the horizontal and vertical offsets. The
SetPositionXY action moves the slider to the specified position. The horizontal position must be within the
wMaxX range and the vertical position must be within the
wMaxY range (the bounds are included).
|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 object:
The method has the following parameters:
An integer value that specifies the slider's horizontal logical position.
An integer value that specifies the slider's vertical logical position.
To set the position of a one-dimensional slider, use the
wPosition property. If the
SetPositionXY method is called for a one-dimensional slider, an error occurs.
If the PositionX value is greater than the
wMaxX value (or less than the
wMinX value), the slider's horizontal position is set to the
wMaxX value (or the
wMinX value) and an error message is posted to the test log.
If the PositionY value is greater than the
wMaxY value (or less than the
wMinY value), the slider's horizontal position is set to the
wMaxY value (or the
wMinY value) and an error message is posted to the test log.