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

Branch on a web element/condition (Smart HTML IF)
What it does
The Smart HTML IF command checks a web condition — element exists/visible, text contains, attribute contains, URL contains/regex, or a variable condition — then jumps to the IF (true) or ELSE (false) label.
When to use it
- Act only when an element/message appears.
- Branch by the current URL (logged in or not...).
- Check page text/attribute to decide.
Configuration steps
- Add a Smart HTML IF command.
- Choose the condition (Exists/Visible/Text contains/URL contains/Variable...), and enter the expected value if needed.
- Set IF/ELSE labels. Save.
Every option explained
Real example
Example: skip if already logged in
- Smart HTML IF, condition URL contains
/dashboard. - IF label =
logged_into skip login. - ELSE =
do_loginto log in.
Tips & common mistakes
Combine with Label/Goto to build smart web flows (re-login when logged out...).
RunMacro