Function: getDateRangeSelection()
getDateRangeSelection(
page,controlId):Promise<DateRangeResult>
Defined in: src/modules/date.ts:384
Gets the current date range from a sap.m.DateRangeSelection control.
Parameters​
page​
DatePage
Playwright Page (or compatible subset).
controlId​
string
The ID of the DateRangeSelection control.
Returns​
Promise<DateRangeResult>
The start and end date strings.
Example​
const range = await getDateRangeSelection(page, 'range1');
// { startDate: '2024-01-01', endDate: '2024-01-31' }