Skip to main content
Version: 1.x

Function: getColumnNames()

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

Defined in: src/modules/table-operations.ts:93

Returns the column header names from a UI5 table.

Parameters

page

TableOperationsPage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

Returns

Promise<readonly string[]>

Ordered array of column header texts.

Intent

Retrieve all column header texts from a UI5 table for column-aware lookups.

Example

const cols = await getColumnNames(page, 'myTable');
// ['Name', 'Status', 'Amount']