Home > Automation Testing > Code to identify all web / broken links of a website

Code to identify all web / broken links of a website

This post was most recently updated on July 31st, 2024

Below selenium code will be useful to identify all website links from all the pages as well as broken links.

Output of above program after entering valid url and domain name 

Link Name Internal / External Response of link
http://www.mundrisoft.com/index.html internal link working 200
http://www.mundrisoft.com/ internal link working 200
http://www.mundrisoft.com/capabilities.html internal link working 200
http://www.mundrisoft.com/case-studies.html internal link working 200

Selenium Tutorial >>

This Article is TAGGED in . BOOKMARK THE permalink.

Babita Sahu
Automation Software Test Engineer. Skills : Selenium , STLC , Java, Manual Testing , UI / UX Testing

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">