Skip to content

Automate browser based workflows with AI

format code style (#203)

LawyZheng2ae381a5e763
diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py
index 90e2397c7..d8907fab3 100644
--- a/skyvern/webeye/actions/handler.py
+++ b/skyvern/webeye/actions/handler.py
@@ -319,11 +319,10 @@ async def handle_select_option_action(
"SelectOptionAction on a non-listbox element. Cannot handle this action",
)
return [ActionFailure(Exception(f"Cannot handle SelectOptionAction on a non-listbox element"))]
-
- # TODO: double click will uncheck the checkbox
- if tag_name == "input" and await locator.get_attribute(
+ elif tag_name == "input" and await locator.get_attribute(
"type", timeout=SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS
) in ["radio", "checkbox"]:
+ # TODO: double click will uncheck the checkbox
click_action = ClickAction(element_id=action.element_id)
return await chain_click(task, page, click_action, xpath)