Working With Check Box Controls in Desktop Windows Applications

Applies to TestComplete 15.69, last modified on November 13, 2024

Note: To learn how to simulate user actions over check box controls in web applications, see Working With Check Box Controls in Web Applications.

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 in Desktop Windows Applications

Describes how to select and clear check boxes.

Determining a Check Box's State in Desktop Windows Applications

Explains how to obtain the state of a check box.

Getting a Check Box's Image in Desktop Windows Applications

Describes how to obtain a check box's image.

Related Topics of Interest

Working With Button Controls in Desktop Windows Applications

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

Working With Radio Button Controls in Desktop Windows Applications

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
Working With Check Box Controls in Web Applications

Highlight search results