Function: getDateRangeSelection()
getDateRangeSelection(
page,controlId):Promise<DateRangeResult>
Ai
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.
Capability
ui5.date.getDateRange
Intent
Read the current start and end dates from a DateRangeSelection control.
Guarantee
Returns an object with start and end date strings in ISO format from the control.
Ai Context
Returns ISO-formatted date strings from getDateValue() and getSecondDateValue().
Sap Module
sap.m.DateRangeSelection — getDateValue(), getSecondDateValue()
Business Context
Read current date range filter values for assertions.
Example
const range = await getDateRangeSelection(page, 'range1');
// { startDate: '2024-01-01', endDate: '2024-01-31' }