|This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.|
wDate property specifies the date that is currently selected in the control.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following objects:
AngularUI Bootstrap Datepicker, AngularUI Date, Flex DateField and 5 more objects, jQuery UI Datepicker, Silverlight DatePicker, Telerik RadDateTimePicker for WinForms, Win32 DateTimePicker, WPF Toolkit DatePicker « Collapse the list
The date that is currently selected in the control.
The property works differently for different objects:
The property is useful only if the
wIsDateFormatproperty’s value is True (that is, if the DateTimePicker control displays date). Otherwise,
If a check box is displayed next to the date (time) within the control (the
wShowCheckboxproperty is True) and this check box is cleared (the
wCheckedproperty is False), retrieving the
wDateproperty’s value causes an error message which is posted to the test log.
WPF Toolkit DatePicker
If you set a date that is earlier than
wMinDateproperty is set equal to
wDate; if you set a date that is later than the
wMaxDateproperty is set equal to
Note for Flex DateField controls: When you use the
wDate property to specify the date in the Flex DateField control, the control's
change event does not occur.
To view an example that demonstrates how to use the
wDate property, see Obtaining DateTimePicker Date and Time.