Working With Radio Button Controls in Desktop Windows Applications

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

TestComplete supports most standard Windows controls, including radio button controls. To work with the latter, it uses a special scripting object called Win32RadioButton. This object is automatically associated with radio button controls whose class names are listed in the project’s Object Mapping options. If the tested application uses custom radio button controls, you can add their class names to the Object Mapping list and thus associate them with the Win32RadioButton object as well. For more information on how to set up this association, see Default Project Properties - Object Mapping Options.

The Win32RadioButton object’s methods and properties let you perform various operations over radio buttons. If the tested application is an Open Application, the radio button’s internal methods and properties are also visible to TestComplete and accessible from tests. In any case, you can learn which methods and properties of the radio button control are available to your tests by exploring the control in the Object Browser.

The topics of this section describe how you can work with Win32 radio button controls in scripts. To learn about working with Android radio button controls see the Working With Android Radio Button 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 a Radio Button in Desktop Windows Applications

Describes how to select a radio button.

Determining a Radio Button's State in Desktop Windows Applications

Explains how to determine a button’s state.

Getting a Radio Button's Image in Desktop Windows Applications

Describes how to obtain a radio button’s image.

Working With Radio Groups in Desktop Windows Applications

Provides information on how to work with radio groups.

Related Topics of Interest

Working With Button Controls in Desktop Windows Applications

Describes how to simulate actions over button controls with TestComplete.

Working With Check Box Controls in Desktop Windows Applications

Explains how you can interact with radio button controls using TestComplete.

Simulating User Actions

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

See Also

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

Highlight search results