Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:A9T9 RPA Macro Execution

From Leeroopedia
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

Execute(macro)={Player(commands)if classic tablerunScript(code)if JS script

Related Pages

Implemented By

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment