Assert a web condition (Smart Assert)
Browser ModeRunMacro 3.5+
The Smart Assert command verifies a condition (element exists, text/URL/attribute/variable matches) to confirm the expected state.
Dialog & quick setup

- Add a Smart Assert command.
- Choose the assertion type (element exists, text contains, URL contains, variable...).
- Enter the expected value if needed.
- Choose the on-fail action: stop / continue / jump / pause. Save.
Options reference
Modes & when to use
Browser Mode
Best for
- Confirm you reached the right page/state before continuing.
- Check that a previous step succeeded.
- Stop safely when detecting an error mid-run.
Use an alternative when
- Do not use Assert for recoverable cases better handled by IF/ELSE; it is for mandatory conditions.
Before you run
- Add Smart Assert to the macro.
- Prepare the data or target that Smart Assert will use.
Example workflow
Example: verify a successful login
- Smart Assert, type URL contains
/dashboard. - On fail: jump to label
relogin. - On success continue normally.
Expected result: After execution, Smart Assert completes the described action and makes its result available to the next step.
Tips & limitations
Use Assert at key checkpoints to catch errors early instead of letting the workflow drift.
- A failed assertion reports an error according to configuration and does not repair the target; dynamic text/attributes can false-fail.
Applies to RunMacro 3.5+ · Browser Mode · Windows 10/11
