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