Skip to main content
Version: 1.x

Function: getTimePickerValue()

getTimePickerValue(page, controlId): Promise<string>

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

Ai

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.

Intent

Read the current time string from a TimePicker control.

Ai Context

Returns the raw string value from getValue().

Sap Module

sap.m.TimePicker — getValue()

Business Context

Read current time values from SAP form fields for assertions.

Example

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