...">

Validating action attributes on thousands of forms

I inherited a Courseware CD with thousands of buttons <form action="page.html" method="get"><input type="submit" value="Go"></form>

.

Some of these forms point to pages that don't exist and I really would like to use an auto crawl tool / crawler to check them.

Any suggestions?

0


source to share


1 answer


WATIR or WATIN can help you with this, especially if the submit button is always "GO" or something similar.



Another option is to create a small app that reads in each html file, finds the form element, grabs the action value and sees if the specified file exists if it doesn't register it, then moves on to the next file

+1


source







All Articles