Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Function clickButton

    • Clicks a sap.m.Button control matching the given button text.

      Parameters

      • ui5: UI5HandlerSlice

        UI5 interaction handler.

      • text: string

        Visible button text (e.g. 'Save', 'Submit').

      Returns Promise<IntentResult<void>>

      An IntentResult<void> describing the outcome.

      Click a button by its visible label, not by ID.

      Works across locales when button text is locale-stable.

      import { clickButton } from '#intents/core-wrappers.js';

      await clickButton(ui5, 'Save');