Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
store the masked value for secret input actions in caching (ai=fallback mode) (#4377)
Shuchang Zheng12539d27a226
diff --git a/skyvern/core/script_generations/skyvern_page.py b/skyvern/core/script_generations/skyvern_page.pyindex 6d2f4cc54..5938647df 100644--- a/skyvern/core/script_generations/skyvern_page.py+++ b/skyvern/core/script_generations/skyvern_page.py@@ -408,6 +408,7 @@ class SkyvernPage(Page):# format the text with the actual value of the parameter if it's a secret when running a workflowif ai == "fallback":error_to_raise = None+ original_value = valueif selector:try:value = await self.get_actual_value(@@ -417,7 +418,7 @@ class SkyvernPage(Page):)locator = self.page.locator(selector)await handler_utils.input_sequentially(locator, value, timeout=timeout)- return value+ return original_valueexcept Exception as e:error_to_raise = eselector = None@@ -435,7 +436,7 @@ class SkyvernPage(Page):if error_to_raise:raise error_to_raiseelse:- return value+ return original_valueelif ai == "proactive" and intention:return await self._ai.ai_input_text(selector=selector,