Skip to content

Automate browser based workflows with AI

add pre click back to select option handler (#3608)

Shuchang Zhengba78db3b7000
diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py
index 8a72f3b4e..3a1b12704 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)