Text edit controls are used to work with text. A user can enter text in them as well as select, copy, cut and paste text. TestComplete provides extended support for text edit controls in iOS applications.
Please note that the maximum character limit for text input is 259 characters.
Note: | The described support is available only if the tested iOS application and the computer where TestComplete is running have been prepared for testing in a special way. See Preparing Applications, Devices and Test Computers for iOS Testing. |
TestComplete analyzes a control's class names in your tested application and automatically creates wrapper objects for the supported controls.
The supported text edit classes are listed in the project’s Object Mapping options. You can extend this list. For example, you can add the class name of a custom text edit used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Object Mapping.
The topics of this section provide detailed information on working with edit controls in TestComplete and contain sample scripts.
In This Section
Getting an Edit Control's Text
Entering Text in an Edit Control
Selecting Text Within an Edit Control
Copying and Pasting Text in Edit Controls
The topics above describe the principles of working with edit controls. These principles are the same for single-line and multiline controls. The specifics of working with multiline controls are described in the topic below:
Working With Multiline Edit Controls
Checking Multiline Edit Controls Position Range
Determining Multiline Edit Controls Position
Changing Multiline Edit Controls Position
Working with Multiline Edit Controls in Paging Mode
Related Topics of Interest
Testing iOS Applications (Legacy)
See Also
iOS TextField Support
iOS TextView Support
Testing iOS Applications (Legacy)
Object-Specific Tasks
Supported Controls