This topic provides reference information about the recordable user methods for testing the xamEditors that are common to all these editors. For information about the editor-specific recordable user methods for a particular editor, see its respective topic. (Listed in the *
block at the bottom.)
This topic contains the following sections:
The methods covered in this topic apply to the following controls:
xamCheckEditor™
xamComboEditor™
xamCurrencyEditor™
xamDateTimeEditor™
xamMaskedEditor™
xamNumericEditor™
xamTextEditor™
The following table briefly explains the recordable methods for testing the control. Detailed information about the methods is provided in the text blocks following the table.
The Set method records and replays the setting of a value to an editor.
No additional details.
The following table explains the method’s parameters along with some sample code.
No default setting.
No known exceptions.
The Clear method records and replays the clearing of the text in the editor.
The method records the setting of the editor in Edit mode and the deleting of the text in it.
When replayed, the method validates whether the editor is in edit mode, selects the text, and then simulates pressing the Backspace key.
No parameters are used with this method.
Example
Clear the text in the editor:
WpfWindow("MainWindow").XamTextEditor("xamTextEditor").Clear
No default setting.
The following table lists the possible exceptions for the method and the reasons that are likely to be causing them.
The SetText method records and replays the adding of text to the text editor.
The method records the setting of the editor in Edit mode and the adding of the new text.
When replayed, the method validates if the editor is in edit mode, selects the old text content, simulates deleting with the Backspace key and adds the new text.
The following table explains the method’s parameters together with some sample code.
No default setting.
The following table lists the possible exceptions for the method and the reasons that are likely to be causing them.
The DropDown method records and replays the opening of an editor drop-down list if such a drop-down exists.
The method records the clicking on the drop-down button.
When replayed, the method validates whether the editor is has a drop-down and opens it.
No parameters are used with this method.
Example
Opening the drop-down in a xamDateTimeEditor control:
WpfWindow("MainWindow").XamDateTimeEditor("dateTimeEditor").DropDown
No default setting.
The following table lists the possible exceptions for the method and the reasons that are likely to be causing them.
The CloseUp method records and replays the closing of an editor drop-down list if such a drop-down exists.
The method records the clicking on the drop-down button.
When replayed, the method validates whether the editor has a drop-down and closes it.
No parameters are used with this method.
Example
Closing the drop-down in a xamDateTimeEditor control:
WpfWindow("MainWindow").XamDateTimeEditor("dateTimeEditor").CloseUp
No default setting.
The following table lists the possible exceptions for the method and the reasons that are likely to be causing them.
The following table lists other topics you may find useful.