'Karate UI: Entering input using variable values

KarateUI question I'm trying to enter values in a text field using a variable. Example:

* def foo = bar
* waitFor("input[aria-label='Search Input']").input('<foo>' + Key.ENTER)

This results in value being entered in the Search Input field.

I have been using the '<[something]>' successfully on a number of other places, not sure why it's not working in the above example.

I have tried a number of other approaches following the documentation without much luck.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source