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
Determining a Check Box's State
Related Topics of Interest
Working With Radio Button Controls
See Also
Win32 CheckBox Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options