Information in this topic applies only to web tests that implement the default approach. This property is not supported in cross-platform web tests. |
Description
The wDate
property specifies the date that is currently selected in the control.
Declaration
TestObj.wDate
Read-Write Property | Date/Time |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section |
Applies To
The property is applied to the following objects:
Ext JS Date Field, Flex DateChooser, Infragistics UltraWinSchedule and 6 more objects, Infragistics WebDateChooser, Qt CalendarWidget, Silverlight Calendar, Telerik RadCalendar for WinForms, Win32 MonthCalendar, WPF Toolkit Calendar « Collapse the list
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Property Value
The date that is currently selected in the control.
Remarks
The property works differently for different objects:
-
Infragistics UltraWinScheduleControl
If you attempt to set a date earlier than
wMinDate
or later thanwMaxDate
,wDate
will not change and an error will be posted to the test log. -
Qt CalendarWidget, Win32MonthCalendar
If you set a date that is earlier than
wMinDate
or later thanwMaxDate
,wDate
will not change. -
Win32 MonthCalendar
If the month calendar supports multi-selection,
wDate
specifies the earliest date in the selected range.If you set the
wDate
property to a value greater thanwEndDate
, the latter will be assigned that value as well. To avoid confusion when selecting a range of dates in a multi-selection month calendar control, use theSetSelection
method. -
WPF Toolkit Calendar
It is possible to set a date earlier than
wMinDate
or later thanwMaxDate
. At that,wMinDate
(wMaxDate
) will be set to the same value aswDate
.
Example
To view an example that demonstrates how to use the wDate
property, see Getting MonthCalendar Date.
See Also
wMinDate Property (Calendar Controls)
wMaxDate Property (Calendar Controls)