Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Cody Pendant (Prior)
on May 04, 2006 at 23:21 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found