Skip to main content

Function: setDateRangeSelection()

setDateRangeSelection(page, controlId, startDate, endDate, options?): Promise<void>

Defined in: src/modules/date.ts:323

Sets a date range on a sap.m.DateRangeSelection control.

Parameters​

page​

DatePage

Playwright Page (or compatible subset).

controlId​

string

The ID of the DateRangeSelection control.

startDate​

DateInput

The start date.

endDate​

DateInput

The end date.

options?​

DateOptions

Optional date operation settings.

Returns​

Promise<void>

Throws​

ControlError if startDate is after endDate.

Example​

await setDateRangeSelection(page, 'range1', '2024-01-01', '2024-01-31');