Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Smart HTML Smart HTML Wait
⏳ Smart HTML

Wait for a web element to appear/hide (Smart HTML Wait)

What it does

The Smart HTML Wait command pauses until a web element meets a condition: exists, visible, or hidden/gone. It waits at the right moment on slow pages instead of a fixed delay.

When to use it

  • Wait for a button/field to appear before acting.
  • Wait for a loading spinner to disappear.
  • Sync with dynamically loaded pages (AJAX/SPA).

Configuration steps

  1. Pick the element selector to wait for.
  2. Add a Smart HTML Wait command, choose the condition: Exists / Visible / Hidden.
  3. Set the timeout and poll interval. Save.

Every option explained

Condition (Exists/Visible/Hidden)

The element state to wait for.

Timeout (ms)

How long to wait at most; exceeding it counts as failure.

Poll interval (ms)

The gap between re-checks.

Real example

Example: wait for a "Confirm" button then click

  1. Smart HTML Wait the Confirm button selector, condition Visible, timeout 30s.
  2. Smart HTML Click the same selector.

Tips & common mistakes

Use Wait before Click/Type steps on dynamic pages to avoid "element not found" errors.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.