bcdeery has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to click an unnamed button while using Mechanize. The HTML is:
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">
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mechanize clicking unnamed button
by marto (Cardinal) on Jul 13, 2006 at 15:09 UTC | |
by bcdeery (Novice) on Jul 13, 2006 at 16:18 UTC | |
by marto (Cardinal) on Jul 13, 2006 at 16:38 UTC | |
by ikegami (Patriarch) on Jul 13, 2006 at 17:15 UTC | |
by ambrus (Abbot) on Jul 14, 2006 at 01:01 UTC | |
by bcdeery (Novice) on Jul 13, 2006 at 16:56 UTC | |
Re: Mechanize clicking unnamed button
by reneeb (Chaplain) on Jul 13, 2006 at 15:59 UTC |
Back to
Seekers of Perl Wisdom