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

This commit is contained in:
Shuchang Zheng
2025-10-03 13:38:50 -07:00
committed by GitHub
parent 82b4396d64
commit ba78db3b70

View File

@@ -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)