fix multi level selection issue (#2350)
This commit is contained in:
@@ -2286,6 +2286,7 @@ async def sequentially_select_from_dropdown(
|
|||||||
dropdown_menu_element: SkyvernElement | None = None,
|
dropdown_menu_element: SkyvernElement | None = None,
|
||||||
force_select: bool = False,
|
force_select: bool = False,
|
||||||
target_value: str = "",
|
target_value: str = "",
|
||||||
|
continue_until_click: bool = False,
|
||||||
) -> CustomSingleSelectResult | None:
|
) -> CustomSingleSelectResult | None:
|
||||||
"""
|
"""
|
||||||
TODO: support to return all values retrieved from the sequentially select
|
TODO: support to return all values retrieved from the sequentially select
|
||||||
@@ -2411,6 +2412,14 @@ async def sequentially_select_from_dropdown(
|
|||||||
)
|
)
|
||||||
continue
|
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)
|
screenshot = await page.screenshot(timeout=settings.BROWSER_SCREENSHOT_TIMEOUT_MS)
|
||||||
mini_goal = (
|
mini_goal = (
|
||||||
input_or_select_context.field
|
input_or_select_context.field
|
||||||
|
|||||||
Reference in New Issue
Block a user