> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/browser/close-current-tab.md).

# Close Current Tab

Close Current Tab closes the active browser tab. Use it after verifying a popup or secondary tab when the Flow should continue on a tab that remains open.

![Close current tab Test Step](https://app.does.qa/screenshots/node/browser_tab_close.png)

## When to use it

* Dismiss a confirmation or receipt tab opened during checkout.
* Clean up extra tabs before the runner moves to the next Test Case.
* Switch to another tab with [Next Tab](/test-steps/browser/next-tab.md) or [Previous Tab](/test-steps/browser/previous-tab.md) first if the Flow should continue elsewhere.

## Configure

### Basics

This step has no required fields. It closes the tab that is currently active.

### Advanced

| Field                                 | What to set                                          |
| ------------------------------------- | ---------------------------------------------------- |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md) |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                  |

## Related

* [Next Tab](/test-steps/browser/next-tab.md)
* [Previous Tab](/test-steps/browser/previous-tab.md)
* [Browser](/test-steps/browser.md)

**Tags:** `browser`, `tab`, `close`
