Skip to main content
Version: 1.x

Function: setTimePickerValue()

setTimePickerValue(page, controlId, time, options?): Promise<void>

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

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').

options?

DateOptions

Optional date operation settings.

Returns

Promise<void>

Intent

Set a time value on a UI5 TimePicker control.

Guarantee

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

Ai Context

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

Sap Module

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

Business Context

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

Throws

ControlError if the time format is invalid.

Example

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