Sets a date and validates that the control does not enter an error state.
Playwright Page (or compatible subset).
The ID of the DatePicker control.
The date to set.
Optional
Optional date operation settings.
ControlError if the control enters an error value state after setting.
await setAndValidateDate(page, 'datePicker1', '2024-01-15'); Copy
await setAndValidateDate(page, 'datePicker1', '2024-01-15');
Sets a date and validates that the control does not enter an error state.