Working With Check Box Controls

Applies to TestComplete 14.0, last modified on January 23, 2019

TestComplete lets you record and replay user actions over most standard Windows controls, including check boxes. To work with Win32 check box controls, it uses the Win32CheckBox object. This object is automatically associated with check boxes whose class names are listed in the project’s Object Mapping options. If your tested application uses custom check boxes, you can associate them with the Win32CheckBox object by adding their class names to the Object Mapping list. For more information, see Default Project Properties - Object Mapping Options.

The Win32CheckBox object’s methods and properties let you perform various operations over check box controls. In addition, if the tested application is Open, TestComplete can access the check box’s internal methods, properties and fields, so that you can use them in your tests as well. To learn the check box’s functionality that is available to your tests, explore the check box control in the Object Browser.

The topics of this section describe how to work with Win32 check box controls and contain script samples that illustrate the explanation. To learn about working with Android check box controls see Working With Android Check Box Controls section.

Note: Though the following topics deal with scripts, you can use the same approaches while testing an application from your keyword tests. For more information, see Keyword Tests Basic Operations.

In This Section

Selecting and Clearing Check Boxes

Describes how to select and clear check boxes.

Determining a Check Box's State

Explains how to obtain the state of a check box.

Getting a Check Box's Image

Describes how to obtain a check box's image.

Related Topics of Interest

Working With Button Controls

Describes how you can perform various operations over button controls using TestComplete.

Working With Radio Button Controls

Explains how to simulate actions over radio button controls with TestComplete.

Simulating User Actions

Explains the most common approaches for simulating user actions over applications’ controls.

See Also

Win32 CheckBox Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results