> 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/runner/switch-to-parent-frame.md).

# Switch To Parent Frame

Switch to parent frame returns focus to the page that contains the iframe. Use it after [Switch frame](/test-steps/runner/switch-frame.md) when later steps belong on the main page again.

![Switch to parent frame Test Step](https://app.does.qa/screenshots/node/action_switch_parentFrame.png)

## When to use it

* Leave an iframe after you finished the embedded journey.
* Pair every Switch frame with a return when the Flow continues outside the iframe.

## Example Flow

![Switch frame, Touch, Switch to parent frame](/files/PDBVqgHWHy5PvnsRvMI6)

## Configure

This step has no fields. Place it after the iframe steps you need.

## Related

* [Switch frame](/test-steps/runner/switch-frame.md)
* [Test tabs, windows, and frames](/guides/test-tabs-windows-and-frames.md)
* [Runner](/test-steps/runner.md)

**Tags:** `action`, `switch`, `frame`, `iframe`, `parent`
