externalChoicesOf function

List<SelectChoice> externalChoicesOf(
  1. Scenario scenario,
  2. String xPath
)

The choices of the select at xPath in scenario, expanded from its search() appearance if it has one (see loadSelectChoices).

Implementation

List<SelectChoice> externalChoicesOf(Scenario scenario, String xPath) =>
    loadSelectChoices(
      FormEntryPrompt(scenario.formDef, scenario.indexOf(xPath)!),
    );