fix multi level selection issue (#2350)

This commit is contained in:
Shuchang Zheng
2025-05-15 11:23:33 -07:00
committed by GitHub
parent ed4280153f
commit ee5f98f451

View File

@@ -2286,6 +2286,7 @@ async def sequentially_select_from_dropdown(
dropdown_menu_element: SkyvernElement | None = None,
force_select: bool = False,
target_value: str = "",
continue_until_click: bool = False,
) -> CustomSingleSelectResult | None:
"""
TODO: support to return all values retrieved from the sequentially select
@@ -2411,6 +2412,14 @@ async def sequentially_select_from_dropdown(
)
continue
if continue_until_click:
LOG.info(
"Continue the selecting until the dropdown menu is closed",
step_id=step.step_id,
task_id=task.task_id,
)
continue
screenshot = await page.screenshot(timeout=settings.BROWSER_SCREENSHOT_TIMEOUT_MS)
mini_goal = (
input_or_select_context.field