Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix input value bug for script run (#3362)
Shuchang Zheng960b680efca6
diff --git a/skyvern/core/script_generations/skyvern_page.py b/skyvern/core/script_generations/skyvern_page.pyindex 9249b8682..53ac05d3d 100644--- a/skyvern/core/script_generations/skyvern_page.py+++ b/skyvern/core/script_generations/skyvern_page.py@@ -380,9 +380,6 @@ class SkyvernPage:# format the text with the actual value of the parameter if it's a secret when running a workflowcontext = skyvern_context.current()value = value or ""- if context and context.workflow_run_id:- value = await _get_actual_value_of_parameter_if_secret(context.workflow_run_id, value)-if ai_infer and intention:try:prompt = context.prompt if context else None@@ -404,6 +401,9 @@ class SkyvernPage:except Exception:LOG.exception(f"Failed to adapt value for input text action on xpath={xpath}, value={value}")+ if context and context.workflow_run_id:+ value = await _get_actual_value_of_parameter_if_secret(context.workflow_run_id, value)+locator = self.page.locator(f"xpath={xpath}")await handler_utils.input_sequentially(locator, value, timeout=timeout)