Skip to main content
Version: 1.x

Function: getFilterBarFieldValue()

getFilterBarFieldValue(page, filterBarId, fieldName): Promise<string>

Gets the current value of a filter field on the filter bar.

Parameters

page

ListReportPage

Playwright Page (or compatible subset).

filterBarId

string

The UI5 control ID of the filter bar.

fieldName

string

The name/key of the filter field.

Returns

Promise<string>

The current value of the filter field, or empty string if not set.

Intent

Read the current value of a filter field on the filter bar.

Capability

fe.listReport.getFilterValue

Example

const value = await getFilterBarFieldValue(page, 'app--filterBar', 'CompanyCode');