Praman — Agent-First SAP UI5 Test Automation Plugin - v1.2.0
    Preparing search index...

    Function detectTableType

    • Ai

      Detects the UI5 table variant for a given control ID.

      Parameters

      • page: TablePage

        Playwright Page (or compatible subset).

      • tableId: string

        The UI5 control ID.

      Returns Promise<TableInfo>

      ui5.table.detectType

      Identify the table type (sap.m.Table, sap.ui.table.Table, SmartTable, MDC Table) so subsequent table operations use the correct API calls.

      On success, returns a TableInfo with correct variant and effectiveId.

      The tableId must reference a valid UI5 table control in the DOM.

      Always call this first before other table operations. SmartTable wraps an inner table; the effectiveId points to the actual table control inside.

      sap.ui.comp.smarttable.SmartTable, sap.m.Table, sap.ui.table.Table, sap.ui.mdc.Table

      Unified table detection across all 6 SAP UI5 table variants.

      `const info = await detectTableType(page, 'myTable');`