Information in this topic applies only to web tests that implement the default approach. This property is not supported in cross-platform web tests. |
Description
Use the wSelectionEnd
property to obtain the index (zero-based) of the first character that follows the selected text in the edit control. The index of the last selected character will be equal to wSelectionEnd-1
. Characters in the text box are enumerated from left to right. To get the number of selected characters, subtract the wSelectionStart
property value from the wSelectionEnd
property value.
Declaration
TestObj.wSelectionEnd
Read-Only Property | Integer |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section |
Applies To
The property is applied to the following objects:
Developer Express MemoEdit, Developer Express PasswordBoxEdit, Developer Express TextEdit and 5 more objects, JavaFX PasswordField, Silverlight AutoCompleteBox, Silverlight RichTextBox, Silverlight TextBox, Telerik RadMaskedXXXInput for Silverlight « Collapse the list
View Mode
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Property Value
An integer value specified the index of character that follows the last selected character. If the text is not selected, wSelectionStart
indicates the position of the cursor.