There is a data driven web application developed using JSF. Are there any tools which can help finding links which lead to a 404 page ? Currently we get to know only when somebody clicks manually and gets a 404 which might be due to a query that did not work or any other reasons too. The links are dynamic ones with hidden parameters, so i presume a static link checker will not work. Selenium could be one possibility but we would have to write code to cover every possible path.
Any suggestions ?
You can use the following code to get all the links in a web page and check each link using
HttpURLConnection
to check the status of the link.Let me know if this helps you.