Assert displayed in a smartphone test

Legacy step that verifies an element is visible in 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 displayed state.

The step waits for the element to appear and fails if it is still not visible when the timeout runs out.

Parameters

ParameterRequiredDescription
Target elementYes, unless a manual selector is setNatural-language description of the element that must be visible.
Manual selectorNoXPath or CSS selector, used when AI is disabled or as the saved selector.
TimeoutNoHow long to wait for the element before failing. Default: 30s.
AI usageNoinherit (default, follows the test strategy), smart, or always.
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. On failure, the duration reflects the full timeout.
  • Status: success if the element became visible within the timeout, failed otherwise.
  • Screenshot: captured for the verified state.

What's next?

Verify element

The current step for element verifications

Verify with AI

Assert visual states in plain language

Last updated on