Skip to main content
Version: 1.x

Function: ensureRowVisible()

ensureRowVisible(page, tableId, rowIndex): Promise<void>

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

Ensures a table row is visible by scrolling if needed (grid tables only).

Parameters

page

TableOperationsPage

Playwright Page (or compatible subset).

tableId

string

The UI5 control ID.

rowIndex

number

Zero-based row index.

Returns

Promise<void>

Intent

Scroll a grid table to bring a specific row into the visible viewport.

Remarks

For responsive tables this is a no-op since they auto-scroll.

Example

await ensureRowVisible(page, 'gridTable', 50);