> 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-exist.md).

# Wait For Element To Not Exist

Wait For Element To Not Exist waits until the [Element](/elements/creating-elements.md) is removed from the DOM. Use it when markup should be deleted, not only hidden.

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

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

## When to use it

* Wait for a row or card to be removed after delete.
* Confirm a temporary node is gone before the Flow continues.
* Prefer [Wait For Element To Not Be Displayed](/test-steps/runner/wait-for-element-to-not-be-displayed.md) when the Element may stay in the DOM but should no longer be shown.

## 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 Exist](/test-steps/runner/wait-for-element-to-exist.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`, `forElementNotExist`, `wait`, `time`, `sleep`, `pause`, `element`, `delay`, `state`
