Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

WWW::Mechanize clicking checkboxes

by Anonymous Monk
on Mar 21, 2011 at 17:00 UTC ( [id://894572]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi.

I'm using the following code to submit a form. I want to know how I add the tick portion of Mechanize to allow the checking of fields. i'd like to know how to add it to the form snippet I posted below. Thanks!
$mech->submit_form( form_name =>'post', fields => { 'post_title' => '1', 'post_msg' => '1' } );

Replies are listed 'Best First'.
Re: WWW::Mechanize clicking checkboxes
by Anonymous Monk on Mar 21, 2011 at 17:12 UTC
    Exactly like you have it there, field, value
      So you're saying with the method I'm applying the FIELDS I don't have to use mech->tick at all?
        That is what I said, and no, i'm not kidding, try it, you'll see

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://894572]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-16 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found