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:
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
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:
-
Win32 DateTimePicker
The property is useful only if the
wIsDateFormat
property’s value is True (that is, if the DateTimePicker control displays date). Otherwise,wDate
is unchangeable.If a check box is displayed next to the date (time) within the control (the
wShowCheckbox
property is True) and this check box is cleared (thewChecked
property is False), retrieving thewDate
property’s value causes an error message which is posted to the test log.If you set a date that is earlier than
wMinDate
or later thanwMaxDate
,wDate
is not changed. -
WPF Toolkit DatePicker
If you set a date that is earlier than
wMinDate
, thewMinDate
property is set equal towDate
; if you set a date that is later than thewMaxDate
property, thewMaxDate
property is set equal towDate
.
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.
Example
To view an example that demonstrates how to use the wDate
property, see Obtaining DateTimePicker Date and Time.
See Also
wMinDate Property (DateTimePicker Controls)
wMaxDate Property (DateTimePicker Controls)