TestComplete offers a set of functions to work with standard Win32 controls from your tests, including the MonthCalendar control. To work with Win32 MonthCalendar controls it uses the
Win32MonthCalendar object. This object is automatically associated with MonthCalendar controls whose class names are listed in the project’s Object Mapping options. If your tested application uses a custom MonthCalendar control that is inherited from a standard MonthCalendar control, you can associate it with the
Win32MonthCalendar object by adding its class name to the Object Mapping list. For more information on this, see Default Project Properties - Object Mapping Options.
You can use properties and methods of the
Win32MonthCalendar object to work with MonthCalendar controls. For instance, you can use these properties to set and get the date selected in the MonthCalendar control.
The topics of this section describe how to work with Win32 MonthCalendar controls. To learn about working with Android calendar controls see Working With Android Calendar 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.|