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

    Function setTimePickerValue

    • Ai

      Sets a time value on a sap.m.TimePicker control.

      Parameters

      • page: DatePage

        Playwright Page (or compatible subset).

      • controlId: string

        The ID of the TimePicker control.

      • time: string

        Time string (e.g., '14:30' or '14:30:00').

      • Optionaloptions: DateOptions

        Optional date operation settings.

      Returns Promise<void>

      ui5.date.setTimePicker

      Set a time value on a UI5 TimePicker control.

      On success, the time value is set and fireChange() is called.

      Validates HH:mm or HH:mm:ss format before setting. Uses setValue() + fireChange().

      sap.m.TimePicker — setValue(), fireChange()

      Set time values in SAP forms (shift start, delivery time, etc.).

      ControlError if the time format is invalid.

      await setTimePickerValue(page, 'timePicker1', '14:30');
      await setTimePickerValue(page, 'timePicker1', '14:30:45');