Skip to main content

Function: getDatePickerValue()

getDatePickerValue(page, controlId): Promise<string>

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

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.

Example​

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