Skip to content

Commit

Permalink
format code style (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng committed Apr 17, 2024
1 parent c162ad3 commit 2ae381a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions skyvern/webeye/actions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2ae381a

Please sign in to comment.