win32com InternetExplorer checkbox set?

Brad Clements bkc at Murkworks.com
Fri May 2 10:03:52 EDT 2003


You are wrong. It's "CHECKED".

Document.forms[3][2].checked = 1


--
Novell DeveloperNet Sysop #5

_
"Ilariu Raducan" <lale at fotonation.com> wrote in message
news:gcssa.11465$pK2.15003 at news.indigo.ie...
> I may be wrong but usually for checkbox the property is not .value but
> .selected
>
> Can you confirm?
>
> Lale
> Robert wrote:
> > I managed to set text fields like
> >
> >
> >>>>ie.Document.forms[3][2].type
> >
> > u'text'
> >
> >>>>ie.Document.forms[3][2].value = "my text"
> >
> >
> > but when I set a checkbox or a select-one (when options have no
> > explicit option values) like
> > ie.Document.forms[3][2].value="1"   # or "ON" or <select-text...>
> >
> > nothing happens !?
> >
> > Robert
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>








More information about the Python-list mailing list