Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51236
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-07-25 08:46 -0700 |
| References | <8fad5326-8518-4554-91bf-1c0b5c97d9bc@googlegroups.com> <mailman.4995.1374564292.3114.python-list@python.org> |
| Message-ID | <85c5f224-3ccc-421b-bb5d-d54c3defbd27@googlegroups.com> (permalink) |
| Subject | Re: How to tick checkboxes with the same name? |
| From | malayrev@gmail.com |
вторник, 23 июля 2013 г., 11:25:00 UTC+4 пользователь Peter Otten написал:
> malayrev@gmail.com wrote:
>
>
>
> > I faced a problem: to implement appropriate search program I need to tick
>
> > few checkboxes which turned out to have the same name (name="a",
>
> > id="a1","a2","a3","a4"). Set_input('a', True) does not work (I use Grab
>
> > library),
>
>
>
> For all but the most popular projects a url works wonders. I'm assuming
>
>
>
> http://grablib.org
>
>
>
> > this command leads to the error "checkboxgroup must be set to a
>
> > sequence". I don't understand what the sequence actually is, so I'm stuck
>
> > with how to tick the checkboxes.
>
>
>
> If I were to guess:
>
>
>
> set_input("a", [True, True, True, True])
>
>
>
> but I don't see that form documented on page
>
>
>
> http://docs.grablib.org/api/ext_form.html
>
>
>
> If it doesn't work try
>
>
>
> set_input_by_id(_"a1", True)
>
> set_input_by_id(_"a2", True)
>
>
>
> and so on.
Well, I have read the documentation, I guess the problem lies in somewhat different field. As long as I understand it refers to Checkboxgroup classes. As checkboxes of interest belong to some common group with the common name "a", they do have values different from "True" or "False" (probably a sequence?) and I should guess somehow what are the real ones. How to do this?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to tick checkboxes with the same name? malayrev@gmail.com - 2013-07-22 21:10 -0700
Re: How to tick checkboxes with the same name? Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-23 01:05 -0400
Re: How to tick checkboxes with the same name? malayrev@gmail.com - 2013-07-25 08:42 -0700
Re: How to tick checkboxes with the same name? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-23 05:14 +0000
Re: How to tick checkboxes with the same name? Peter Otten <__peter__@web.de> - 2013-07-23 09:25 +0200
Re: How to tick checkboxes with the same name? malayrev@gmail.com - 2013-07-25 08:46 -0700
Re: How to tick checkboxes with the same name? Peter Otten <__peter__@web.de> - 2013-07-26 09:05 +0200
csiph-web