Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51067

Re: How to tick checkboxes with the same name?

References <8fad5326-8518-4554-91bf-1c0b5c97d9bc@googlegroups.com>
Date 2013-07-23 01:05 -0400
Subject Re: How to tick checkboxes with the same name?
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4992.1374555922.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Jul 23, 2013 at 12:10 AM,  <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), 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. It would be really great if someone would help me with how to handle this question. The code is available here:
> view-source:http://zakupki.gov.ru/pgz/public/action/contracts/search/ext/enter
> --
> http://mail.python.org/mailman/listinfo/python-list

Have you tried a[0], a[1], etc. for the names?

--
Joel Goldstick
http://joelgoldstick.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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