Elements
Elements are reusable UI locators you can reference across test cases. The recorder creates elements automatically when you record a test case. You can also create and edit elements manually.
How the recorder creates ElementsHow the recorder creates Elements
When you record a test case, QAlity automatically creates elements for every UI interaction - clicks, inputs, and other actions. They appear in the Elements list under the screen name detected during recording.
Elements created by the recorder can be edited manually at any time - for example to update a selector after a UI change.
Elements listElements list
Click Elements under Advanced in the left sidebar.
How to create an Element manuallyHow to create an Element manually
-
Open Elements
Go to Advanced - Elements in the sidebar.
-
Create
Click + Create Element in the top right.
-
Fill in fields
Fill in the fields (see Element fields below).
-
Save
Click Update to save.
Element fieldsElement fields
A unique name to identify this element. Example: button-03
The screen or page this element belongs to. Example: Login|QAlity
How QAlity locates this element on the page.
The actual locator expression. Example: //button[@aria-label='Toggle password visibility']
XPath is the most commonly used selector strategy - it is also what the recorder uses by default.
How to edit an ElementHow to edit an Element
-
Open the element
Click the element Name in the list.
-
Edit Element modal
The Edit Element modal opens.
-
Update fields
Update the fields as needed.
-
Save or cancel
Click Update to save or Cancel to discard.
How to delete an ElementHow to delete an Element
Click the red trash icon in the Actions column and confirm deletion.