Creating Assertion Steps
Autify allows you to validate certain elements and information on a given page.
There are two types of assertions in Autify:
- Assertions on elements within a page
- Assertions against a page
To add an assertion step, click the checkbox button 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.
Available commands depends on the target element. For more information, please see this article.
Assertions against a page
To add an assertion step against the page, click the checkbox icon on the Autify Recorder, and click [Assert against page].
A list of commands will appear. Select the appropriate command and click the [Save Assertion] button.
For more information on the available commands, see this article.
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.