Back to all steps

Wait for element

Step fields
1 selector (text)
2 seconds (number)
In a scenario, fields are joined with |.
Wait for an element to appear. Format: selector|seconds.
Example: .modal-success|5 — wait up to 5s for the modal with class modal-success
Usage example

Wait for an element to appear in the DOM for up to N seconds.

Format: selector|seconds

Examples:

  • .modal-success|5 — a modal with the class modal-success
  • #order-confirm|15
  • [data-loaded="true"]|10 — a readiness marker attribute

When to use: AJAX loading, lazy SPA rendering.