From 362309dec36a75c0c1a3051d4e826066ed9ecad5 Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Fri, 28 Nov 2025 13:43:30 +0800 Subject: [PATCH] scroll into view before click (#4127) --- skyvern/webeye/actions/handler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 7c4ed6a3..27253e0b 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -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)