adspace
How can you find broken links in a page using selenium webdriver?
Answer Posted / 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 View All Answers