Thanks Howard! That solves my problem. Ram.
On Sun, Mar 25, 2012 at 8:06 PM, Howard B. Golden <[email protected] > wrote: > Ram, > > From the mechanize FAQ: > > How do I change INPUT TYPE=HIDDEN field values (for example, to emulate > the effect of JavaScript code)? > As with any control, set the control’s readonly attribute false. > > form.find_control("foo").readonly = False # allow changing .value of control > foo > form.set_all_readonly(False) # allow changing the .value of all controls > > HTH, > > Howard > > ------------------------------ > *From:* Ram Rachum <[email protected]> > *To:* [email protected] > *Sent:* Sunday, March 25, 2012 10:43 AM > *Subject:* [twill] Why are hidden fields read-only? > > Hello, > > I'm using Twill and I tried to fill in a form which has a hidden field. > > Twill doesn't let me fill in the hidden field, saying it's read-only: > > AttributeError: control 'user' is readonly > > Why is this? What's the problem with writing to a hidden field? > > > Thanks for your help, > Ram Rachum. > > _______________________________________________ > twill mailing list > [email protected] > http://lists.idyll.org/listinfo/twill > > >
_______________________________________________ twill mailing list [email protected] http://lists.idyll.org/listinfo/twill
