Skip to main content
Version: 1.x

Function: getDatePickerValue()

getDatePickerValue(page, controlId): Promise<string>

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

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.

Intent

Read the current date string from a DatePicker control.

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