Find broken link in a webpage using selenium

0 votes
Is there a way to find broken links in selenium? Can someone explain me as how it is done?
Jan 8, 2019 in Selenium by Anjali
• 2,950 points
1,373 views

1 answer to this question.

0 votes

You have to follow these steps to find broken images in a page using Selenium Web driver:

  • get XPath and get the all links on the page using the tag name
  • click on  every link on the page
  • look for 404/500 in the target page title
This way you can either check for the broken links or store them in a file and use it for later references.
Hope this helps.
answered Jan 8, 2019 by Sona

Related Questions In Selenium

0 votes
2 answers
+1 vote
2 answers

Is it possible to scroll down in a webpage using selenium webdriver programmed on python?

I using next code for facebook for ...READ MORE

answered May 16, 2019 in Selenium by mslavikas@gmail.com
26,104 views
0 votes
1 answer
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,772 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,187 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,263 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,902 views
0 votes
1 answer

Verification points in Selenium

There are basically three verification points that ...READ MORE

answered Feb 11, 2019 in Selenium by Fred
1,741 views
0 votes
1 answer

What are the types of Assertion in Selenium?

In selenium Assertion is nothing but a ...READ MORE

answered Feb 11, 2019 in Selenium by Fred
2,255 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