When recording tests with Autify Nexus, you can perform actions and assert against your webpage itself, or you can assert against specific elements on the page. This document is a reference for all of the actions and assertions you can make in Autify Nexus.
Element actions
Hover over element
Records a hover step over the selected element.
Element assertions
Element assertions are created by clicking on a specific element during recording. Certain elements can only use certain assertions. During recording, assertions that cannot be performed on an element will be grayed out and unavailable for use.
Assert text
Makes a text assertion against the text within the target element.
If you want to assert against the text inside an
<input>
or<textarea>
, use the action Equals value during recording, or Assert field’s value equals in the scenario editor.
Element checked
Asserts that a checkbox is checked.
Element disabled
Asserts that the element is disabled.
The assertion will pass if the target element has the disabled
attribute.
Element enabled
Asserts that the element is enabled.
The assertion will pass if the target element does not have the disabled
attribute.
Element unchecked
Asserts that a checkbox is unchecked.
Element visible
Asserts that the element is visible.
The assertion will fail if the target has one of the following style attributes:
display: none;
visibility: hidden;
opacity: 0;
Equals value
Asserts that the target <input>
or <textarea>
contains the given value.
This action appears in the UI as “Assert field’s value equals”.
Looks the same
Makes a visual assertion against the target element.
Page assertions
Page assertions target the page in general. You can make assertions on:
The browser window that is displaying your website
The page as a whole, not concerning any one specific element but rather all elements
Assert page content
Makes a text assertion against all text content found on a page. In other words, make an assertion against all text content available in the page’s HTML.
Assert page title
Makes a text assertion against the title of the page. The title of a page can be found in the window’s tab, for example, Autify | AI and Quality Assurance Professionals Improve Development Productivity through Test Automation and Efficiency
.
Assert page URL
Makes a text assertion against the URL displayed in the browser’s address bar, for example, https://www.autify.com
.
Assert page visual change
Makes a visual assertion against the entire page.