TestComplete supports most standard Windows controls, including button controls. To work with Win32 button controls, it uses the Win32Button
object.
This object is automatically associated with button controls whose class names are listed in the project’s Object Mapping options. If your tested application uses custom button controls, you can add their class names to the Object Mapping list and thus associate them with the Win32Button
object as well. See Default Project Properties - Object Mapping Options for more information.
You can work with button controls using the methods and properties of the Win32Button
object. In addition, if the tested application is an Open Application, you can access the internal methods and properties of the button control and use them in tests. To learn which button members are available to your tests, explore the button control in the Object Browser.
The topics of this section discuss common operations that can be performed over Win32 button controls. To learn about working with Android button controls see Working With Android 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
Related Topics of Interest
Working With Check Box Controls
Working With Radio Button Controls
See Also
Win32 Button Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options