Overview
Sometimes a verification step may fail to validate the text displayed within a field. This can happen when the text is not stored in the element's standard 'value' attribute. The visible text might be located in a different HTML attribute (like 'name') or as the element's inner text. This guide explains how to use the DOM Navigator to find the correct attribute and configure the verification step properly.
How It Works
To resolve verification issues with field content, you need to inspect the element's properties in the Document Object Model (DOM). The DOM Navigator in Architect is the tool for this, allowing you to see all the attributes associated with an element and identify where the text you want to verify is stored.
Follow these steps to correctly verify content within a field:
- Open the test case in Architect.
- Navigate to the step that requires the verification.
- Use the DOM Navigator to inspect the element in question.
- In the element's properties, look for the attribute that contains the text you want to validate. This could be
value,name, or another custom attribute. - Edit the verification step and go to its advanced settings.
- Update the step to verify against the specific attribute you identified. For example, if the text is in the 'name' attribute, instruct the verification to check the 'name' attribute instead of the default.
Limitations
This method requires the text to be present within the element's properties in the DOM. It cannot verify text that is part of an image or text that is not programmatically associated with the element.