Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Workday submit: require positive confirmation before marking submitted (SKY-12657) (#7712)
Cindy Li2360de1e30bb
diff --git a/skyvern/core/script_generations/script_skyvern_page.py b/skyvern/core/script_generations/script_skyvern_page.pyindex b4c831a72..7d4a102a6 100644--- a/skyvern/core/script_generations/script_skyvern_page.py+++ b/skyvern/core/script_generations/script_skyvern_page.py@@ -664,6 +664,15 @@ class ScriptSkyvernPage(SkyvernPage):exc_info=True,)+ async def capture_action_screenshot(self) -> None:+ """Persist a SCREENSHOT_ACTION of the current page as timeline-visible evidence.++ Same persistence path as the per-action hook, callable on demand so a script can+ record a screenshot at a specific moment (e.g. a confirmed submission). The run+ timeline renders SCREENSHOT_ACTION / SCREENSHOT_LLM only, never SCREENSHOT_FINAL.+ """+ await self._create_screenshot_after_execution()+@classmethodasync def _create_html_action_after_execution(cls) -> None:"""Create an HTML_ACTION artifact after action execution.diff --git a/skyvern/core/script_generations/skyvern_page.py b/skyvern/core/script_generations/skyvern_page.pyindex 830311d1c..196cc1df0 100644--- a/skyvern/core/script_generations/skyvern_page.py+++ b/skyvern/core/script_generations/skyvern_page.py@@ -1394,6 +1394,17 @@ class SkyvernPage(Page):async def complete(self, prompt: str | None = None) -> None:"""Stub for complete. Override in subclasses for specific behavior."""+ # Intentionally not @action_wrap-wrapped: this is internal evidence capture, not a+ # user-facing recordable action like click/fill/complete.+ async def capture_action_screenshot(self) -> None:+ """Persist a screenshot of the current page as a timeline-visible run artifact.++ On-demand evidence capture for a specific moment (e.g. a confirmed submission).+ Stub; the cached-script page overrides this to persist a SCREENSHOT_ACTION for+ the current block.+ """+ return+@action_wrap(ActionType.DOWNLOAD_FILE)async def download_file(self,