Skip to main content
Version: 1.x

Function: feGetColumnNames()

feGetColumnNames(page, tableId): Promise<readonly string[]>

Defined in: src/fe/fe-table-helpers.ts:367

Gets all column header names from a UI5 table control.

Parameters

page

FETablePage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID of the table.

Returns

Promise<readonly string[]>

A readonly array of column header strings.

Remarks

For responsive tables, reads getHeader().getText() on each column. For grid tables, reads getLabel().getText() or stringifies the label.

Throws

ControlError if the table control is not found.

Example

const columns = await feGetColumnNames(page, 'myApp--productTable');
// ['Product', 'Status', 'Price']