format code style (#203)

This commit is contained in:
LawyZheng 2024-04-17 22:48:42 +08:00 committed by GitHub
parent c162ad3d0c
commit 2ae381a5e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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