dindia has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use WWW::Mechanize to click a "TAB" button at : http://spiedigitallibrary.org/ebooks/spies/kbart
The button's source code:
</table> <br><br> <input type="submit" name="action" value ="Excel"> <input type="submit +" name="action" value ="CSV"> <input type="submit" name="action" value ="TAB"> <input type="submit" +name="action" value ="HTML"> </form>
I'm using the following line:
$mech->click_button (value => "TAB");but get an error:
.Can't call method "header" on an undefined value at ....app/perl-5.10.1/lib/site_perl/5.10.1/WWW/Mechanize.pm line 2381.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Mechanize to click a button
by moritz (Cardinal) on Mar 17, 2011 at 10:59 UTC | |
by dindia (Initiate) on Mar 17, 2011 at 12:21 UTC | |
by moritz (Cardinal) on Mar 17, 2011 at 12:41 UTC | |
by dindia (Initiate) on Mar 20, 2011 at 14:20 UTC |