# Recording assertions

## What is an assertion?

You assert that some condition is met, and if it isn't, the test should fail.

## How to record an assertion?

You can add more advanced assertions manually - learn more about [assertions and their types](https://docs.bugbug.io/editing-tests/assertions).

1. Start [recording test steps](https://docs.bugbug.io/recording-tests-steps)
2. Click `Add assert`
3. Click the element that you want to check: every time the test is run BugBug will check if this element contains the same text or is visible on the page

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FajwinFAOINHq2qLaqh0d%2F1_addAssert.png?alt=media&#x26;token=9f838c72-6f8c-4a26-ba67-18baf68696a7" alt=""><figcaption><p>Add assert option on the recorder</p></figcaption></figure>

You can also enable the "**Add multiple**" toggle, to select various elements on the page at once. Such as checking if all the elements are in place in the main navigation menu.

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FlmJqxbYigDroO4eiU9In%2F2_addAssert.png?alt=media&#x26;token=c551943d-dec9-42a8-a5d3-5c3592d00a4b" alt=""><figcaption><p>"Add multiple" toggle disabled</p></figcaption></figure>

<figure><img src="https://3168433179-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MKixgeBPbLvnD0l1eiV%2Fuploads%2FTnK4M4NPuk9V9MWlOfsm%2F3_addMultipleAssertions.png?alt=media&#x26;token=c1b451de-692a-47f3-be3d-d3ec160d9bd7" alt=""><figcaption><p>"Add multiple" toggle enabled</p></figcaption></figure>
