Browser: Close tab

Close a browser tab, or the browser when it is the last tab.

Help Centre › Building Processes

Close a browser tab, or the browser when it is the last tab.

Add it to a process

In the process designer, open the Add step tab. Find Close tab under Browser › Navigate, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Which tabNoWhich tab to close: by number, the first (oldest), the last (newest), the one the bot is on, or the first whose title or web address contains the text Choices: Tab number, First (oldest) tab, Last (newest) tab, Tab the bot is on, Tab whose title or address contains. Default: number.
TabYesTab number to close (1 = first tab). If only one tab is open, the entire browser is closed Default: 1.
Title or address containsNoCloses the first tab whose title or web address contains this text. Capitals count.

See all Browser steps.

Errors

ErrorDescription
Browser not openNo browser session is active
Tab not foundThe specified tab number does not exist

Tips

  • Tab numbers start at 1
  • Closing the last tab closes the browser

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.