Assertions
  • 21 Nov 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Assertions

  • Dark
    Light

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 -

  1. Assertions on elements in a page
  2. 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


What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.