Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
add an action abort result type (#171)
LawyZhenga7351f22122e
diff --git a/skyvern/webeye/actions/responses.py b/skyvern/webeye/actions/responses.pyindex e631b771a..009a9907c 100644--- a/skyvern/webeye/actions/responses.py+++ b/skyvern/webeye/actions/responses.py@@ -60,3 +60,20 @@ class ActionFailure(ActionResult):interacted_with_sibling=interacted_with_sibling,interacted_with_parent=interacted_with_parent,)+++# TODO: action is aborted. but action chains need to be continued in forge/agent.agent_step+# so set success to True for right now.+class ActionAbort(ActionResult):+ def __init__(+ self,+ javascript_triggered: bool = False,+ interacted_with_sibling: bool = False,+ interacted_with_parent: bool = False,+ ):+ super().__init__(+ success=True,+ javascript_triggered=javascript_triggered,+ interacted_with_sibling=interacted_with_sibling,+ interacted_with_parent=interacted_with_parent,+ )