-
Print
-
DarkLight
Assertions Make Autify Go Round
Assertions are how you validate a specific element on the page. There are many assertions you can make each with their own specific purpose. Let's take a look at how and when to use each assertion.
How to make an assertion:
You can add assertions by clicking the checkbox button on the recorder during recording.
There are two main types of assertions that can be made -
- Assertions on elements in a page
- Assertions against the page
Assertions on elements in a page
To add an assertion on an element in a page, click the checkbox icon and mouse over the element you want to assert against. The element will be highlighted with a dark grey rectangle to indicate the element you want to assert. Click on it and a list of options will show up that you can choose from.
Select the appropriate option and click the "Save Assertion" button.
The assertion options displayed will vary depending on the target element.
More on assertion options here.
Assertions against the page
To make an assertion against the page, click the checkbox icon and then click the "Assert against page" button, which will display a list of assertion options.
Select the appropriate option and click the "Save Assertion" button. This will add the assertion step.
More on assertion options here.
Next Section: Hover Step