What are Broken Links and why they needs to be checked?

0 votes
What are Broken Links and why they needs to be checked?
May 17 in Selenium by Umang
31 views

2 answers to this question.

0 votes

Hey Umang, Broken links are links or URLs that are not reachable. They may be down or not functioning due to some server error. A valid URL will always have a status with 2xx. There are different HTTP status codes which are having different purposes. For an invalid request, HTTP status is 4xx and 5xx. 4xx class of status code is mainly for client side error, and 5xx class of status codes is mainly for the server response error. We will most likely be unable to confirm if that link is working or not until we click and confirm it.

We should always make sure that there are no broken links on the site because the user should not land into an error page. The error happens if the rules are not updated correctly, or the requested resources are not existing at the server. Manual checking of links is a tedious task, because each webpage may have a large number of links & manual process has to be repeated for all pages. An Automation script using Selenium that will automate the process of checking broken links is a more apt solution.

answered May 17 by Anvi
• 12,840 points
0 votes

@Umang, Broken link or dead link is a link on a web page that no longer works because of the website facing any of the reasons stated below:

  • An improper URL entered for the link by the developer.
  • Destination website removed the linked web page causing a 404 error.
  • Requested website permanently moved or no longer exists.
  • The user is behind a firewall that blocks access to the destination website.
  • The website owner linked to a site that is behind a firewall that does not allow outside access.
answered Aug 1 by Abha
• 22,870 points

Related Questions In Selenium

0 votes
1 answer
+2 votes
2 answers

What are the different Locators that can be used to access Web Elements?

@Nitesh, I would like to tell you ...READ MORE

answered Dec 12, 2018 in Selenium by Priyaj
• 56,520 points
64 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
556 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
891 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
554 views
0 votes
1 answer
0 votes
1 answer

What is Log4j and what are its advantages??

Hi Benny, Log4j is a brilliant logging API ...READ MORE

answered May 21 in Selenium by Anvi
• 12,840 points
28 views