How can you find broken links in a page using selenium webdriver?



How can you find broken links in a page using selenium webdriver?..

Answer / Archana Singh

You can use Selenium WebDriver with the HtmlUnitDriver to find broken links on a page. After loading the page, you can get the list of all anchor tags (<a> elements), and then verify if the href attribute points to a valid URL.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What exactly is selenium remote-control (rc) tool?

1 Answers  


what is the difference between driver.get() and driver.navigate.to(“url”)?

1 Answers  


Explain the difference between close and quit command?

1 Answers  


Difference between @findByMethod and @findelement?

3 Answers   HCL,


What programing language is most useful for creating selenium evaluations?

1 Answers  


What are the ways to refresh a browser using selenium webdriver?

1 Answers  


How to capture the screenshot of failed testcase only among a set of testcases?

2 Answers   CGI, Cube Digi,


How you build object repository in your project?

1 Answers  


Tell me what kind of mouse actions can be performed in selenium?

1 Answers  


What does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

1 Answers  


Tell me do you know a way to refresh browser by using selenium?

1 Answers  


what is the difference between 2.0 & 3.0

1 Answers  


Categories