in reply to WWW::Mechanize, radio buttons, and clicking a named button

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')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re^2: WWW::Mechanize, radio buttons, and clicking a named button
by mpettis (Beadle) on May 05, 2006 at 02:06 UTC
    Thanks! I'll give it a try.