Question

Can we get more information from the "Find Broken Links" command like "HTML Inner Text" or "HTML Title" or etc about the hyperlink which is broken along with other information?

  • 16 February 2022
  • 1 reply
  • 18 views

Hi All,

 

We are trying to find the broken links on the site. Our problem with the AA solution is - it's giving only URLs and the Status of the URLs (whether broken or not) but we wanted to get more information like "HTML Inner Text" or "HTML Title" or etc of the broken links.

 

Can you help me here with any workaround or technique? Thanks in advance


1 reply

Userlevel 4
Badge +7

Hi @Akash Malapur​ ,

 

After you create the CSV of broken links, you can then loop through each link and then use the Capture Action to retrieve the respective attributes.

 

For that, you have to convert the hyperlinks into locators i.e., create an XPath which detects the urls which will look something like this:

 

//a[@value='$rcsv_Record{"URL"}$']

 

You might have to make some adjustments here and there.

 

Kind Regards,

Ashwin A.K

Reply