Principle:A9T9 RPA Macro Execution
| Knowledge Sources | |
|---|---|
| Domains | Browser_Automation, Playback_Engine |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
Mechanism for running a stored macro (classic command table or JS script) against a browser tab or desktop, collecting execution results and status.
Description
Macro Execution is the unified process of running a macro to completion. It encompasses the entire lifecycle: setting up the execution context (CDP attach, tab selection, variable initialization), driving the command iteration (via the Player engine for classic macros or the script runner for JS macros), collecting results (logs, screenshots, trails), and reporting the final status.
For classic command-table macros, the Player engine iterates commands and dispatches each via `runCommandInPlayTab` to the content script.
For JS script macros, `runScript` creates a JS-Interpreter sandbox, injects the `uiv.*` API, and drives the step loop to completion.
Both paths share common infrastructure: the CDP input service for trusted browser input, the XY input service for desktop input, the screenshot service, and the log service.
Usage
Use this principle when any RPA system needs to run a stored macro — whether a command table or a script — and collect results. It is the unifying abstraction over both macro formats.
Theoretical Basis
Related Pages
Implemented By
- Implementation:A9T9_RPA_Player_Engine
- Implementation:A9T9_RPA_buildInterpreter
- Implementation:A9T9_RPA_uiv_API