Assert not displayed in a web test
Legacy step that verifies an element is hidden or absent from the page. Use Verify element in a web test instead.
Deprecated. This step no longer appears in the step palette. Existing tests that use it keep running. For new tests, use Verify element with the condition is not and the displayed state.
Verify that an element is hidden or absent: an error banner that should not show, a spinner that should be gone.
Parameters
| Parameter | Required | Description |
|---|---|---|
| Target element | Yes, unless a manual selector is set | Description of the element that must not be visible. |
| Manual selector | No | XPath or CSS selector of the element that must not be visible. |
| Timeout | No | How long to wait for the element to disappear before failing. Default: 30s. |
| Ignore error on this step | No | The run continues with the next step if this one fails. Default: off. |
Results and metrics
- Timing: start, end, and duration (in seconds) recorded in the step result.
- Status: success if the element is absent or hidden within the timeout, failed if it stays visible.
- Screenshot: captured for the verified state.
What's next?
Last updated on