Skip to main content

Function: getTimePickerValue()

getTimePickerValue(page, controlId): Promise<string>

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

Gets the current value from a sap.m.TimePicker control.

Parameters​

page​

DatePage

Playwright Page (or compatible subset).

controlId​

string

The ID of the TimePicker control.

Returns​

Promise<string>

The current time value string.

Example​

const time = await getTimePickerValue(page, 'timePicker1');
// '14:30'