Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51073
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: How to tick checkboxes with the same name? |
| Date | 2013-07-23 09:25 +0200 |
| Organization | None |
| References | <8fad5326-8518-4554-91bf-1c0b5c97d9bc@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4995.1374564292.3114.python-list@python.org> (permalink) |
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.
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