Ref actions (accessibility API)

Presses the exact button by its id, without moving a mouse.

What it is
Actions such as click(ref) or fill(ref, text) go straight through the accessibility API to the element. No coordinates, no pointer, no stolen focus.
When to use it
  • An accessibility tree is available
  • Several bots work on one machine at once
When to skip it
  • Canvas or remote-desktop apps, which have no refs
Why (the trade-off)
The target is exact, so there are no misclicks, and nothing fights over one mouse.
Where it sits
Action layer → OS accessibility API.
What it needs first
What can be added to it
Instead of it
Effect of adding it
  • cost —
  • latency —
  • reliability ↑↑
  • safety —
Risks it handles
  • Clicking the wrong element · full

depth 4+1 production note with numbers.