Find Broken Links on Webpage with Selenium Automation
As an Automation Tester, you get to play with links present on the website. Links are one of the most important parts of the webpage. So, it's always important to not leave any broken links on any website. Testing the links manually could be a tough and time taking task. In this post, we'll learn to automate URL link testing. 1. What is a Broken Link? A broken link is a URL that is not working or not reachable. There are multiple reasons for its dis-functioning. There are different HTTP error status codes that the browser shows when the link is broken. These error codes have different meanings. Let's take a look at the different HTTP status codes. 200 - It means success, the link is working. 404 - It's the most common one, which means Page not found. 403 - Authorization is required to access the page. 400 - It has different meanings, bad request, bad host, timeout, etc. 500 - Internal server error. 2. Why a link broke? A link might not be working due to many reasons,