Skip to main content
Version: 1.x

Function: exportTableData()

exportTableData(page, tableId, options?): Promise<readonly Record<string, string>[]>

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

Exports visible table data as an array of objects keyed by column header text.

Parameters

page

TableFilterSortPage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

options?

TableExportOptions

Export options (columns to include, etc.).

Returns

Promise<readonly Record<string, string>[]>

Array of row objects keyed by column header text.

Intent

Extract all visible table data as structured JSON objects for assertions or export.

Remarks

This does NOT create a file export; it reads cell values as JSON objects.

Example

const data = await exportTableData(page, 'myTable');
// [{ Name: 'Alice', Status: 'Active' }, ...]