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 Browser IF Target Exists
❓ Browser

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

  1. In Browser Mode (CDP), add Browser › IF Target Exists.
  2. Fill one or more conditions: URL contains / Title contains / Extension ID.
  3. Set an IF Label and ELSE Label, adjust retry count and delay per try. Save.

Every option explained

URL contains

Matches if the target URL contains this string.

Title contains

Matches if the tab/page title contains this string.

Extension ID

Only matches pages belonging to the extension with this ID.

IF Label / ELSE Label

Where to jump when a target is found / not found.

Max retries & retry delay (ms)

Repeat the check to wait for the target to appear (default 25 tries, 100ms each).

Real example

Example: wait for a wallet confirm popup

  1. IF Target Exists: extension ID = wallet ID, URL contains notification.
  2. IF Label → HAS_POPUP: select & click Confirm.
  3. 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 robot

Ready to automate smarter?

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