DocsSmart HTMLSmart HTML Wait

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

Browser ModeRunMacro 3.5+

The Smart HTML Wait command pauses until a web element meets a condition: exists, visible, or hidden/gone.

Dialog & quick setup

RunMacro Smart HTML Wait command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Smart HTML Wait command in RunMacro.
  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.

Options reference

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.

Modes & when to use

Browser Mode

Best for

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

Use an alternative when

  • Do not use it when readiness cannot be represented by a DOM element/attribute or no reasonable timeout exists.
Before you run
  • Add Smart HTML Wait to the macro.
  • Prepare the data or target that Smart HTML Wait will use.

Example workflow

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.
Expected result: After execution, Smart HTML Wait completes the described action and makes its result available to the next step.

Tips & limitations

Use Wait before Click/Type steps on dynamic pages to avoid "element not found" errors.
  • A stale selector, wrong iframe context, or poor timeout can cause false timeouts or wasted waits.

Applies to RunMacro 3.5+ · Browser Mode · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.