From ba78db3b700029ef5e7b62ee4a5d7f3bf9455ac8 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 3 Oct 2025 13:38:50 -0700 Subject: [PATCH] add pre click back to select option handler (#3608) --- skyvern/webeye/actions/handler.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 8a72f3b4..3a1b1270 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -3451,6 +3451,20 @@ async def normal_select( index: int | None = json_response.get("index") value: str | None = json_response.get("value") + try: + await locator.click( + timeout=settings.BROWSER_ACTION_TIMEOUT_MS, + ) + except Exception as e: + LOG.info( + "Failed to click before select action", + exc_info=True, + action=action, + locator=locator, + ) + action_result.append(ActionFailure(e)) + return action_result + if not is_success and value is not None: try: # click by value (if it matches)