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

    Function fillField

    • Resolves a field label via vocabulary and fills the matching UI5 control.

      Parameters

      • ui5: UI5HandlerSlice

        UI5 interaction handler (structural sub-type of UI5Handler).

      • vocabulary: VocabLookup

        Vocabulary lookup service.

      • label: string

        Human-readable field label (e.g. 'Vendor').

      • value: string

        Text value to enter.

      Returns Promise<IntentResult<void>>

      An IntentResult<void> describing the outcome.

      Returns status: 'error' (code ERR_VOCAB_TERM_NOT_FOUND) when the vocabulary cannot resolve label to a selector. No exception is thrown — the error is surfaced in the IntentResult envelope.

      Fill a form field by business-readable label.

      Decouples tests from hard-coded control IDs.

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

      const result = await fillField(ui5, vocabulary, 'Vendor', '100001');
      if (result.status === 'error') throw new Error(result.error?.message);