I am using mechanize module to retrieve information from a web page. It has a radio control section which I select before moving to the next page. I could easily select the value by assigning value to it. But coulnt retrieve the value of the candidate radio button. RadioSelect part of my form looks like below:
<RadioControl(rdoSelect=[1634,ABX EXPRESS, 16650,XYZ EXP])>
I could easily set the values by:
br.form['txtSource']='1634,ABX EXPRESS'
What I want is to retireve the list :
[1634,ABX EXPRESS, 16650,XYZ EXP]
UPDATE:
When I gave
print br.form['rdoSelect']
It gives [] as result
I could get the value using
print br.form.possible_items("rdoSelect")
But its giving me this
/usr/lib/python2.5/site-packages/ClientForm.py:2984: DeprecationWarning: [item.name for item in self.items]
return c.possible_items(by_label)
Instead of:
mechanize says to use:
Example use:
Yields: