I'm trying to click an unnamed button while using Mechanize. The HTML is:
<input type="button" name="" value="Get Detailed
+Quote" onclick="goToPage('goToPackageInfoPage')"
class="buttonpurple">
<input type="button" name="" value="Get Quick Quot
+e" onclick="goToPage('getQuickQuote')" class="buttonpurple">
<input type="button" name="" value="Get Transit Ti
+me" onclick="setTTOn();goToPage('goToPackageInfoPage')"
class="buttonpurple">
I'm trying to click the third button, but have no idea how.
I've tried
$mech->click_button( value=>'Get Transit Time');
but I just get the error "Can't call method "header" on an undefined value at C:\...Mechanize.pm line 1868, <MYFILE> line 1.
Any ideas?