Queenzlander
5 years agoNew Contributor
How to confirm the hyperlink URL without clicking the hyperlink?
Hi, Does anyone know how to confirm the URL 'behind' a hyperlink is correct without having to click the hyperlink? For example, I have a hyperlink on the screen with the label 'Home' and the 'a ...
- 5 years ago
Answer provided by Nick from CrossBrowserTesting:
You can verify an HREF by using 'Add Expect' and selecting 'Element'. Once you have clicked on the element that contains the HREF, you will see a dialogue open. Change the Expect to 'Attribute' and the Name to 'HREF'.
Usually, the Value will populate with a portion of the URL from the HREF, so I would recommend to paste in the entire link or adjust the 'To' field to Contains.