Skip to main content
Version: 1.x

Function: getDatePickerValue()

getDatePickerValue(page, controlId): Promise<string>

Ai

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

Parameters​

page​

DatePage

Playwright Page (or compatible subset).

controlId​

string

The ID of the DatePicker control.

Returns​

Promise<string>

The current date value string.

Capability​

ui5.date.getDatePicker

Intent​

Read the current date string from a DatePicker control.

Guarantee​

Returns the raw date string from the control's getValue() method.

Ai Context​

Returns the raw string value from getValue(). Format depends on the control's valueFormat.

Sap Module​

sap.m.DatePicker — getValue()

Business Context​

Read current date values from SAP form fields for assertions.

Example​

const value = await getDatePickerValue(page, 'datePicker1');