Working With Combo Box Controls in Desktop Windows Applications

Applies to TestComplete 15.31, last modified on March 17, 2022

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

TestComplete supports a number of standard Windows controls, including combo box controls. Combo box controls display a set of items and permit the user to make an exclusive choice. The user can navigate within the combo box control and select the needed item.

If the class name of the tested combo box control is listed in the Default Project Properties - Object Mapping Options options of the current project, TestComplete associates it with Win32ComboBox. If you need to test custom combo box controls, you can add their class names to the Object Mapping list. In this case, they will be associated with the Win32ComboBox object as well. Specific properties and methods of the Win32ComboBox object allow you to navigate within a combo box, search for items and retrieve data from the tested combo box control.

The topics of this section provide detailed information on how to work with Win32 combo box controls. To learn about working with Android spinner controls see the Working With Android Spinner 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

Combo Box Types in Desktop Windows Applications

Describes different types of combo box controls.

Selecting Combo Box Items in Desktop Windows Applications

Explains how you can select individual combo box items.

Getting Combo Box Items in Desktop Windows Applications

Describes how you can obtain combo box items.

Determining the Number of Combo Box Items in Desktop Windows Applications

Explains how to determine the total number of combo box items.

Working With Drop-Down Lists in Desktop Windows Applications

Explains how you can work with combo boxes’ drop-down lists.

Getting Combo Box Items' Images in Desktop Windows Applications

Describes how to work with images associated with combo box items.

Working With Owner-Drawn Combo Boxes in Desktop Windows Applications

Describes the specifics of working with owner-drawn combo boxes.

Related Topics of Interest

Working With List Box Controls in Desktop Windows Applications

Describes how to perform various operations over list box controls using TestComplete.

Table Checkpoints

Explains how you can create checkpoints that verify data displayed in combo box controls.

Simulating User Actions

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

See Also

Object-Specific Tasks
Win32 ComboBox Support
Supported Controls
Default Project Properties - Object Mapping Options
Working With Combo Box Controls in Web Applications

Highlight search results