Inputs

pattern
string

Exact URL or glob pattern that the currently active page should match. To switch to different tabs, see the Switch to tab step.

timeout
number

Maximum number of seconds to wait. The step will fail if the page does not transition to a matching URL within the timeout. If no timeout is provided, the timeout will be set to the default page load timeout, which is configurable in the test options dialog.

Glob pitfalls

Be aware of the common pitfalls surrounding glob patterns. We recommend testing your pattern with an online tool to ensure the results match your expectations.

  1. **/* does not match empty strings. For example, if the current URL is https://google.com/:

    https://google.com/**/* does not match.

    https://**/* does match.

  2. * does not match / characters. For example, if the current URL is https://docs.momentic.ai/steps/wait-for-url:

    https://docs.momentic.ai/steps* does not match.

    https://docs.momentic.ai/steps/* does match.

  3. When placed within a single path segment, ** does not match recursive paths. For example, if the current URL is https://momentic.ai/schedule-demo/book:

    https://momentic.ai/schedule-demo** does not match.

    https://momentic.ai/schedule-demo/* does match.