Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Function setDateRangeSelection

    • Ai

      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.

      • Optionaloptions: DateOptions

        Optional date operation settings.

      Returns Promise<void>

      ui5.date.setDateRange

      Set both start and end dates on a DateRangeSelection control.

      On success, both date values are set and fireChange() is called.

      startDate must be before or equal to endDate.

      Uses setDateValue() and setSecondDateValue() + fireChange(). Validates that start date is before or equal to end date before setting.

      sap.m.DateRangeSelection — setDateValue(), setSecondDateValue()

      Set date range filters (fiscal period, delivery window, reporting range).

      ControlError if startDate is after endDate.

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