Switch and close browser tabs

When pages open or close tabs during a run, use these no-code steps to manage them.

Switch to a tab


To switch to a different tab during a run, open the step finder, search for tab, and add the Switch browser tab step.

  1. Set Tab position to Last opened tab, or specify the tab number. 1 is the leftmost tab, 2 is the second from the left, and so on.

Close a tab


To close a tab during a run, open the step finder, search for tab, and add the Close browser tab step.

  1. Set Tab position to Last opened tab, or specify the tab number. 1 is the leftmost tab, 2 is the second from the left, and so on.

Manage tabs with JavaScript


The Write javascript step can also open and close tabs.

To open a tab:

window.open('https://www.example.com');

To close a tab:

window.close();