scroll into view before click (#4127)

This commit is contained in:
LawyZheng
2025-11-28 13:43:30 +08:00
committed by GitHub
parent 3b265c7d87
commit 362309dec3

View File

@@ -724,6 +724,14 @@ async def handle_click_action(
)
return [ActionFailure(InteractWithDisabledElement(skyvern_element.get_id()))]
try:
await skyvern_element.scroll_into_view()
except Exception:
LOG.info(
"Failed to scroll into view, ignore it and continue executing",
element_id=skyvern_element.get_id(),
)
if action.download:
results = await handle_click_to_download_file_action(action, page, scraped_page, task, step)