DocsBrowserClose Tab

Close the current tab in background Chrome (CDP)

Browser ModeRunMacro 3.5+

The Close Tab command closes the active tab of background Chrome.

Dialog & quick setup

RunMacro Close Tab command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Close Tab command in RunMacro.
  1. In Browser Mode (CDP), select the right tab with Switch Tab if needed.
  2. Add the Browser › Close Tab command.
  3. Save.

Modes & when to use

Browser Mode

Best for

  • 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.

Use an alternative when

  • Do not close a tab with unsaved form state or an uncertain target selection.
Before you run
  • Add Close Tab to the macro.
  • Prepare the data or target that Close Tab will use.

Example workflow

Example: close the lookup tab

  1. Switch Tab → the side tab.
  2. Close Tab.
  3. Switch Tab → 1 to return to the main tab.
Expected result: After execution, Close Tab completes the described action and makes its result available to the next step.

Tips & limitations

The command has no options — it always closes the currently selected tab. Use Switch Tab first to target the right one.
  • Closing destroys tab session state and can change the active target; last-tab/extension behavior depends on Chrome.

Applies to RunMacro 3.5+ · Browser Mode · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.