> 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/wait-for-element-to-not-be-visible.md).

# Wait For Element To Not Be Visible

Wait For Element To Not Be Visible waits until the [Element](/elements/creating-elements.md) is no longer shown within the current viewport. Use it when UI leaves the visible area but may still exist elsewhere on the page.

See [Element states](/test-step-options/element-states.md) for how Visible differs from Displayed and Exists.

![Wait for element to not be visible Test Step](https://app.does.qa/screenshots/node/action_wait_forElementNotVisible.png)

## When to use it

* Wait for a dropdown or tooltip to leave the viewport after selection.
* Confirm a sticky banner scrolled away before checking content below it.
* Prefer [Wait For Element To Not Be Displayed](/test-steps/runner/wait-for-element-to-not-be-displayed.md) when the Element should leave the page entirely.

## Configure

### Basics

| Field       | What to set                                               |
| ----------- | --------------------------------------------------------- |
| **Element** | The [Element](/elements/creating-elements.md) to wait for |

### Advanced

| Field                                 | What to set                                                |
| ------------------------------------- | ---------------------------------------------------------- |
| **How fast is this typically?**       | [Timeout Override](/test-step-options/timeout-override.md) |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md)       |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                        |

## Related

* [Wait For Element To Be Visible](/test-steps/runner/wait-for-element-to-be-visible.md)
* [Wait For Element To Not Be Displayed](/test-steps/runner/wait-for-element-to-not-be-displayed.md)
* [Element states](/test-step-options/element-states.md)
* [Runner](/test-steps/runner.md)

**Tags:** `action`, `wait`, `forElementNotVisible`, `wait`, `time`, `sleep`, `pause`, `element`, `delay`, `state`
