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 Close Tab
✖ Browser

Close the current tab in background Chrome (CDP)

What it does

The Close Tab command closes the active tab of background Chrome. For safety, if only one tab remains, RunMacro navigates it to about:blank instead of closing Chrome entirely.

When to use it

  • Clean up a side tab after extracting data.
  • Close an ad/popup page opened in its own tab.
  • Keep the window tidy across many loops.

Configuration steps

  1. In Browser Mode (CDP), select the right tab with Switch Tab if needed.
  2. Add the Browser › Close Tab command.
  3. Save.

Real example

Example: close the lookup tab

  1. Switch Tab → the side tab.
  2. Close Tab.
  3. Switch Tab → 1 to return to the main tab.

Tips & common mistakes

The command has no options — it always closes the currently selected tab. Use Switch Tab first to target the right one.
RunMacro robot

Ready to automate smarter?

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