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.
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
Determining a Check Box's State in Desktop Windows Applications
Getting a Check Box's Image in Desktop Windows Applications
Related Topics of Interest
Working With Button Controls in Desktop Windows Applications
Working With Radio Button Controls in Desktop Windows Applications
Win32 CheckBox Support
Default Project Properties - Object Mapping Options
Working With Check Box Controls in Web Applications