Skip to main content
Version: 1.x

Function: waitForTableData()

waitForTableData(page, tableId, options?): Promise<void>

Defined in: src/modules/table.ts:522

Ai

Waits for table data to load with a minimum row count.

Parameters

page

TablePage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

options?

WaitForTableDataOptions

Wait options.

Returns

Promise<void>

Intent

Wait until the table has loaded at least N rows of data.

Guarantee

On success, the table binding has at least minRows entries.

Prerequisite

The table must be bound to an OData model that will eventually load data.

Ai Context

Polls via waitForFunction() until row count meets minRows threshold or timeout. Use after navigation or search to ensure data is loaded before reading cell values.

Sap Module

sap.m.Table, sap.ui.table.Table — binding length polling

Business Context

Wait for OData response to populate table before proceeding with assertions.

Remarks

Uses page.waitForFunction() with a browser-side predicate. Throws TimeoutError on timeout.

Example

`await waitForTableData(page, 'myTable', { minRows: 5 });`