improve dropdown detect (#1927)

This commit is contained in:
Shuchang Zheng
2025-03-11 12:33:09 -07:00
committed by GitHub
parent 14308d4531
commit a572126d61
3 changed files with 7 additions and 4 deletions

View File

@@ -2336,7 +2336,8 @@ async def locate_dropdown_menu(
step: Step,
task: Task,
) -> SkyvernElement | None:
if not await current_anchor_element.is_visible():
# the anchor must exist in the DOM, but no need to be visible css style
if not await current_anchor_element.is_visible(must_visible_style=False):
return None
skyvern_frame = incremental_scraped.skyvern_frame