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

    Function selectOption

    • Resolves a field label via vocabulary and selects an item in the matching control.

      Parameters

      • ui5: UI5HandlerSlice

        UI5 interaction handler.

      • vocabulary: VocabLookup

        Vocabulary lookup service.

      • label: string

        Human-readable field label (e.g. 'Purchasing Org').

      • option: string

        Key or visible text of the item to select.

      Returns Promise<IntentResult<void>>

      An IntentResult<void> describing the outcome.

      Select a dropdown option by business field label.

      Avoids hard-coded control IDs in test code.

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

      await selectOption(ui5, vocab, 'Purchasing Org', '1000');