Browse the docs

The page says

Passes when the page text, or one element's text, contains some text or matches a regular expression.

The page says contains

Details #

Reads the visible text of the page (or of selector). Give contains (any case) or regex.

Parameters #

ParameterTypeRequiredValuesWhat it does
containstextText to look for.
htmltext
impersonateone ofauto chrome safari none
regextextA regular expression.
sampleany value
selectortextOnly this element's text.
signIntext
tabany valueWhich tab.
urltext, html, via, signIn, impersonate: Check a page nobody has open: url is fetched the way a browser would (signed in with signIn), so onlyIf can ask "does the product page say In stock" without a tab.
viaone offetch tab

Examples #

Stop if the page says out of stock
Do
  1. If the page says “out of stock”
  2. Stop the macro
  3. Else
Open in Switchboard to try it

Gotchas #

  • Hidden text is not part of the visible text.