Skip to main content
Version: 1.x

Function: confirmAndWait()

confirmAndWait(ui5): Promise<IntentResult<void>>

Defined in: src/intents/core-wrappers.ts:417

Clicks the confirmation button (OK or Confirm) then waits for UI5 to stabilise.

Parameters

ui5

UI5HandlerSlice

UI5 interaction handler.

Returns

Promise<IntentResult<void>>

An IntentResult<void> describing the outcome.

Remarks

Attempts to click OK first; falls back to Confirm if the first click throws. Always calls waitForUI5 after the confirmation click.

Intent

Confirm a dialog or message box and wait for the UI to settle.

Capability

Handles both SAP standard 'OK' and custom 'Confirm' button labels.

Example

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

await confirmAndWait(ui5);