in reply to What does WWW::Mechanize consider Clickable input?

You don't have to specify a button to submit a form. You can simply $mech->submit( ... blah blah blah ... ) without specifying a button.

xoxo,
Andy

  • Comment on Re: What does WWW::Mechanize consider Clickable input?

Replies are listed 'Best First'.
Re^2: What does WWW::Mechanize consider Clickable input?
by Anonymous Monk on Jun 01, 2008 at 11:34 UTC
    You need a form first (buttons outside of form tags won't work)
    use WWW::Mechanize; $ua=WWW::Mechanize->new; $ua->get('http://cpan.org');#no forms, contrast with search.cpan.org warn $ua->forms; warn $ua->submit; __END__ Warning: something's wrong at - line 6. Can't call method "make_request" on an undefined value at C:/Perl/site +/lib/WWW/Mechanize.pm line 1641.