I am using mechanize
and I select a button from a radio button list I am trying to There are 5 items in this list How do I choose the first item? Docs did not help me.
& gt; & Gt; & Gt; Br.form & lt; Clientform.HTMLForm example 0x9ac0d4c on & gt; & Gt; & Gt; & Gt; Brochure & lt; Form1 POST http://www.example.com application / x-www-form-urlencoded & lt; Hidden Control (DD = 17010200) (Read Only) & gt; & Lt; Radiocontrol (prodclass = [1, 2, 3, 4, 5]) & gt; & Lt; SubmitControl (submit = text) (read only) & gt; & Gt;
br.form ['prodclass' ] = ['1']
I like more wording:
br.form.set_value (['1'], name = 'prodclass ')
Comments
Post a Comment