Assert not displayed in a smartphone test

Legacy step that verifies an element is hidden or absent from the app. Use Verify element in a smartphone 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

ParameterRequiredDescription
Target elementYes, unless a manual selector is setDescription of the element that must not be visible.
Manual selectorNoXPath or CSS selector of the element that must not be visible.
TimeoutNoHow long to wait for the element to disappear before failing. Default: 30s.
Ignore error on this stepNoThe 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?

Verify element

The current step for element verifications, including negative checks

Wait for delay

Pause before checking, if timing matters

Last updated on