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

Check whether a CDP target exists (tab/extension)
What it does
The IF Target Exists command scans background Chrome targets (tabs and extension pages) and checks if any matches: URL contains, Title contains, or Extension ID. If YES → jump to the IF Label, if NO → the ELSE Label. It retries several times.
When to use it
- Check whether an extension confirm popup has appeared.
- Wait for a specific tab to show up before acting.
- Branch depending on whether a target page is open.
Configuration steps
- In Browser Mode (CDP), add Browser › IF Target Exists.
- Fill one or more conditions: URL contains / Title contains / Extension ID.
- Set an IF Label and ELSE Label, adjust retry count and delay per try. Save.
Every option explained
Real example
Example: wait for a wallet confirm popup
- IF Target Exists: extension ID = wallet ID, URL contains
notification. - IF Label → HAS_POPUP: select & click Confirm.
- ELSE Label → NO_POPUP: skip.
Tips & common mistakes
Increase retries/delay if the popup is slow to appear. Combine multiple conditions for a more precise match.
RunMacro