support multiple-choice selection (#2272)
This commit is contained in:
@@ -1363,6 +1363,7 @@ async def handle_select_option_action(
|
|||||||
step=step,
|
step=step,
|
||||||
task=task,
|
task=task,
|
||||||
force_select=True,
|
force_select=True,
|
||||||
|
target_value=action.option.label or action.option.value or "",
|
||||||
)
|
)
|
||||||
# force_select won't return None result
|
# force_select won't return None result
|
||||||
assert result is not None
|
assert result is not None
|
||||||
@@ -2596,7 +2597,7 @@ async def select_from_dropdown(
|
|||||||
is_date_related=context.is_date_related,
|
is_date_related=context.is_date_related,
|
||||||
field_information=context.field if not context.intention else context.intention,
|
field_information=context.field if not context.intention else context.intention,
|
||||||
required_field=context.is_required,
|
required_field=context.is_required,
|
||||||
target_value="" if force_select else target_value,
|
target_value=target_value,
|
||||||
navigation_goal=task.navigation_goal,
|
navigation_goal=task.navigation_goal,
|
||||||
navigation_payload_str=json.dumps(task.navigation_payload),
|
navigation_payload_str=json.dumps(task.navigation_payload),
|
||||||
elements=html,
|
elements=html,
|
||||||
|
|||||||
Reference in New Issue
Block a user