--- title: "Mastering Assertions in Autify | Autify Guide" slug: "assertions" description: "Efficient Element Validation with Autify's Assertions. Streamline your testing process. Get started today!" updated: 2023-11-17T08:01:15Z published: 2023-11-17T08:01:15Z canonical: "help.autify.com/assertions" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Assertions ## Creating Assertion Steps Autify allows you to validate certain elements and information on a given page. There are two types of assertions in Autify: 1. Assertions on elements within a page 2. Assertions against a page To add an assertion step, click the checkbox button ![](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screen Shot 2021-09-29 at 11.50.41 AM.png?sv=2026-02-06&spr=https&st=2026-10-28T10%3A08%3A11Z&se=2026-10-28T11%3A08%3A11Z&sr=c&sp=r&sig=DqAz6w8ec5oK4oeqyGQlWg7k6HY1Dy4EzM9Pwwrs1hU%3D) on the Autify Recorder while recording. ### Assertions on elements within a page To add an assertion step to validate an element in a page, click the checkbox icon in Autify Recorder and mouse over the element you want to validate. The target element will be highlighted with a dark grey rectangle. Click on it, and a list of commands will appear. Select the appropriate command and click the ***[Save Assertion]*** button. ![](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screen Shot 2021-09-29 at 12.24.30 PM.png?sv=2026-02-06&spr=https&st=2026-10-28T10%3A08%3A11Z&se=2026-10-28T11%3A08%3A11Z&sr=c&sp=r&sig=DqAz6w8ec5oK4oeqyGQlWg7k6HY1Dy4EzM9Pwwrs1hU%3D) Available commands depends on the target element. For more information, please see [this article](/docs/en/assertion-elements-on-the-page). ### Assertions against a page To add an assertion step against the page, click the checkbox icon ![](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screen Shot 2021-09-29 at 11.50.41 AM.png?sv=2026-02-06&spr=https&st=2026-10-28T10%3A08%3A11Z&se=2026-10-28T11%3A08%3A11Z&sr=c&sp=r&sig=DqAz6w8ec5oK4oeqyGQlWg7k6HY1Dy4EzM9Pwwrs1hU%3D) on the Autify Recorder, and click ***[Assert against page]***. ![](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screen%20Shot%202021-09-29%20at%2011.51.07%20AM.png?sv=2026-02-06&spr=https&st=2026-10-28T10%3A08%3A11Z&se=2026-10-28T11%3A08%3A11Z&sr=c&sp=r&sig=DqAz6w8ec5oK4oeqyGQlWg7k6HY1Dy4EzM9Pwwrs1hU%3D) A list of commands will appear. Select the appropriate command and click the ***[Save Assertion]*** button. ![](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screen%20Shot%202021-09-29%20at%2012.24.48%20PM.png?sv=2026-02-06&spr=https&st=2026-10-28T10%3A08%3A11Z&se=2026-10-28T11%3A08%3A11Z&sr=c&sp=r&sig=DqAz6w8ec5oK4oeqyGQlWg7k6HY1Dy4EzM9Pwwrs1hU%3D) For more information on the available commands, see [this article](/docs/en/assertions-against-the-page). Validating pages that uses asynchronous communication, such as SPA If the element that you're asserting against doesn't exist on the page, Autify will keep searching for a set amount of time. Therefore, even if a page involves asynchronous communication, as long as the target element appears within that time, you can validate it without a Sleep Step.