Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: WWW::Mechanize, radio buttons, and clicking a named button

by Cody Pendant (Prior)
on May 04, 2006 at 23:21 UTC ( #547537=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-01-18 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (52 votes). Check out past polls.

    Notices?