Skip to main content
Version: 1.x

Function: filterByColumn()

filterByColumn(page, tableId, columnIndex, filterValue, options?): Promise<void>

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

Applies a filter to a table column.

Parameters

page

TableFilterSortPage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

columnIndex

number

Zero-based column index.

filterValue

string

The value to filter by.

options?

TableFilterOptions

Filter options (operator defaults to 'Contains').

Returns

Promise<void>

Intent

Filter a UI5 table column by a specified value and operator.

Throws

ControlError if the filter cannot be applied.

Example

await filterByColumn(page, 'myTable', 1, 'Active', { operator: 'EQ' });