Working With iOS Text Edit Controls

Applies to TestComplete 15.63, last modified on April 23, 2024

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

Describes how to get the text displayed in an edit control.

Entering Text in an Edit Control

Describes how to enter text in and delete text from an edit control.

Selecting Text Within an Edit Control

Describes how to select text in an edit control.

Copying and Pasting Text in Edit Controls

Describes how to copy text from an edit control to the clipboard and how to paste it to the edit control from the clipboard.

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

Describes the specifics of working multiline edit controls.

Checking Multiline Edit Controls Position Range

Contains information on how to determine the minimum and maximum positions of multiline edit controls.

Determining Multiline Edit Controls Position

Contains information on getting the current position of multiline edit controls.

Changing Multiline Edit Controls Position

Explains how to set a position of multiline edit controls.

Working with Multiline Edit Controls in Paging Mode

Explains how to work with multiline edit controls in paging mode.

Related Topics of Interest

Testing iOS Applications (Legacy)

Describes the most common approaches for testing iOS applications.

See Also

iOS TextField Support
iOS TextView Support
Testing iOS Applications (Legacy)
Object-Specific Tasks
Supported Controls

Highlight search results