I am trying to click a button with Perl Mechanize, but there are some twists because I am trying to apply the same script to different sites, each of which has the same id attribute for the button, but the forms are not the same number on the page, and the buttons have no name, just an id.
Is there any way to click a button when you only know the id?
Failing that, what is the best way to determine the number of the form that holds a button with a given id?
See HTML::Form: