good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: WWW::Mechanize, radio buttons, and clicking a named buttonby Cody Pendant (Prior) |
on May 04, 2006 at 23:21 UTC ( [id://547537]=note: print w/replies, xml ) | Need Help?? |
I was sure I'd posted this yesterday, but I must have been distracted between preview and post.
This works for me. $mech->set_fields('one_of_two_options'=>'option_b'); Where "one_of_two_options" is the NAME of the set of radio buttons and "option_b" is the VALUE of the particular button. That is, despite radio buttons being buttons in one sense of the word, they're not buttons as far as Mech is concerned, they're fields. ($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
In Section
Seekers of Perl Wisdom
|
|