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, 2019 in Selenium by Umang
958 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, 2019 by Anvi
• 14,150 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, 2019 by Abha
• 28,140 points

Related Questions In Selenium

0 votes
1 answer
+2 votes
3 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
• 58,020 points
1,513 views
0 votes
1 answer

What are things to be kept in mind to ensure effective regression testing?

Regression testing can get cumbersome, if not ...READ MORE

answered Feb 18, 2019 in Selenium by Jobin
572 views
0 votes
2 answers

What are the wait methods which can be used to handle AJAX calls?

Hi , for Ajax call better to use Explicit ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
1,627 views
0 votes
2 answers

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,500 points
13,763 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,184 views
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,910 points
7,258 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,895 views
0 votes
1 answer

What is Marionette driver and how it can be used to instantiate Firefox webdriver?

Hey Manju, Marionette driver is the new driver ...READ MORE

answered Jul 15, 2019 in Selenium by Anvi
• 14,150 points
3,314 views
0 votes
1 answer

What is Log4j and what are its advantages??

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

answered May 22, 2019 in Selenium by Anvi
• 14,150 points
3,448 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP