Function: fillField()
fillField(
ui5,vocabulary,label,value):Promise<IntentResult<void>>
Defined in: src/intents/core-wrappers.ts:174
Resolves a field label via vocabulary and fills the matching UI5 control.
Parameters​
ui5​
UI5 interaction handler (structural sub-type of UI5Handler).
vocabulary​
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.
Remarks​
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.
Intent​
Fill a form field by business-readable label.
Capability​
Decouples tests from hard-coded control IDs.
Example​
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);