Verify Element Property
Use the Verify Element Property step to validate a specific HTML attribute of an element—such as a link’s href
, an image’s src
, or an input field’s placeholder
.
When to Use
Use this step to confirm that an element’s key attribute has the expected value, for example:
- Verifying a link’s destination URL (
href
). - Confirming an image’s source URL (
src
).
Steps to Add 'Verify Element Property'
While recording, click the Add a Verification Step icon.
Select Verify text in relation to other text.
Click on the element whose property you want to verify in the browser.
In the dropdown, select the property you want to verify.
Note
The list of available properties depends on the type of element selected on the page.
Enter the expected value of the selected property.
Click Save to add the step.
The verification step is added to the scenario and appears in the Recorder as a new step.
You can view this step in the Features page as part of the recorded scenario.
After running the scenario, you can view the result of this verification step on the Reports page.