This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete. |
Description
Use the wPosition
property to get or set the current logical position of the specified slider. This value must be within the range wMin ... wMax
(the bounds are included).
Declaration
TestObj.wPosition(Index)
Read-Write Property | Double |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Index | [in] | Optional | Integer | Default value: 0 |
Applies To
The property is applied to the following objects:
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Parameters
The property has the following parameter:
Index
Specifies the zero-based index of the slider whose position you want to get or set.
Property Value
A value that specifies the current position of the slider.
Remarks
Changing the wPosition
property of a single-thumb Flex Slider fires the valueCommit
event in the tested application. So, if the application has an event handler assigned to this event, the handler will process the event.
Due to the specifics of Flex Slider controls, the valueCommit
event is fired only if the slider has one thumb. If the slider has multiple thumbs, the event is not fired. As for the change
event, changing the wPosition property does not fire it both for single-thumb and multiple-thumb sliders.
See Also
wMax Property (Specific to Flex Slider and Ext JS Slider Controls)
wMin Property (Specific to Flex Slider and Ext JS Slider Controls)