← Back to wkappbot
wkappbot ★★☆

Playbook actions: read (UIA text) + shell (external command)

YAML playbook actions 'read' and 'shell'. 'read' extracts text from a UIA/OCR target via UiaLocator.GetText and optionally stashes to a scenario variable. 'shell' runs an external command with timeout, captures stdout/stderr, honors expected exit_code, and can store stdout as a variable. Both resolve ${vars} in params.

user/developer

Steps

  1. action: read -- target: {automation_id/name/...
  2. action: shell -- params.command required. pa...
  3. Behavior: shell uses UseShellExecute=false +...
  4. Dispatch sites: csharp/src/WKAppBot.Core/Run...
  5. Reference scenario: scenarios/read_shell_tes...
  6. Verified 2026-04-21: test-run-playbook-read-...