mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-02 18:50:24 +00:00
format code style (#203)
This commit is contained in:
parent
c162ad3d0c
commit
2ae381a5e7
1 changed files with 2 additions and 3 deletions
|
@ -319,11 +319,10 @@ async def handle_select_option_action(
|
||||||
"SelectOptionAction on a non-listbox element. Cannot handle this action",
|
"SelectOptionAction on a non-listbox element. Cannot handle this action",
|
||||||
)
|
)
|
||||||
return [ActionFailure(Exception(f"Cannot handle SelectOptionAction on a non-listbox element"))]
|
return [ActionFailure(Exception(f"Cannot handle SelectOptionAction on a non-listbox element"))]
|
||||||
|
elif tag_name == "input" and await locator.get_attribute(
|
||||||
# TODO: double click will uncheck the checkbox
|
|
||||||
if tag_name == "input" and await locator.get_attribute(
|
|
||||||
"type", timeout=SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS
|
"type", timeout=SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS
|
||||||
) in ["radio", "checkbox"]:
|
) in ["radio", "checkbox"]:
|
||||||
|
# TODO: double click will uncheck the checkbox
|
||||||
click_action = ClickAction(element_id=action.element_id)
|
click_action = ClickAction(element_id=action.element_id)
|
||||||
return await chain_click(task, page, click_action, xpath)
|
return await chain_click(task, page, click_action, xpath)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue