Skip to main content
This guide is for no-code tests. If you’re using the Stably Playwright SDK, see AI Assertions for Stably SDK instead.
Stably’s AI assertion visually checks the page against the expected state.

What kind of assertions can I make?

You can make assertions on the following:
  • Text content (e.g. the text of a button)
  • Visual content (e.g. an image that has a certain theme, or a button that has a certain color)
  • Presence of an element (e.g. a button that should be present on the page)
  • Calculated values (e.g. the total price of items in a cart equals the sum of the prices of the items)
With Playwright, assertions can be rigid and get out of sync with UI changes. With Stably AI, assertions can be high-level and adapt as the UI changes.