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?<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">
In reply to Mechanize clicking unnamed button by bcdeery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |