Skip to main content
Substring match against the page’s rendered text. For semantic assertions, use assert. For element-level matching, use the checkElement family.

Parameters

ParameterTypeRequiredDescription
textstringYesSubstring that must appear on the page.
timeoutnumberNoMaximum time in milliseconds to wait for the text.
iframestringNoURL or URL pattern of the iframe that contains the target element.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Text as a single string.
- checkPageContains: Momentic Staging

Examples

- checkPageContains:
    text: cloud-ai-action-completion
    timeout: 90000
- checkPageContains:
    text: "{{ env.HEADER_NAME_GLOBAL }}"
    timeout: 5000
- checkPageContains:
    text: Interface theme
    iframe: https://example.com/settings
    timeout: 60000