Skip to main content
Version: 1.x

Function: getFilterValue()

getFilterValue(page, tableId, columnIndex): Promise<string | null>

Defined in: src/modules/table-filter-sort.ts:249

Returns the current filter value of a table column.

Parameters

page

TableFilterSortPage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

columnIndex

number

Zero-based column index.

Returns

Promise<string | null>

Filter value string, or null if the column is not filtered.

Intent

Read the currently applied filter value for a UI5 table column.

Example

const filter = await getFilterValue(page, 'myTable', 0);