> For the complete documentation index, see [llms.txt](https://docs.browserflow.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.browserflow.app/reference/browserflow-commands/utilities/assert.md).

# Assert

Throws an error if the condition is not met

#### **Conditions**

See [Conditions](/guides/conditions.md) page

### Use cases

#### Use case: Verify intermediate results during a flow

Asserts can be used to verify that certain steps in a flow completed successfully. For example, if your flow submits a form, you can use `Assert` to check that some success text (e.g. "Your form was submitted successfully!") appears on the page.

#### Use case: End-to-end testing

Asserts can be used to test functionality in websites and web apps. For example, if you wanted to create a test to ensure that clicking the "Sign up" button on your home page takes the user to the sign up page, you can use `Assert` to check the result of [Get Page URL](/reference/browserflow-commands/extract-data/get-page-url.md) after clicking the button.

### Video demo

{% embed url="<https://www.loom.com/share/d57dc6f416204733b83fce48ab1ada62>" %}
