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?

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.060
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'problem:': 0.07; 'subject:same': 0.07; 'true)': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'question.': 0.14; '23,': 0.16; 'library),': 0.16; 'names?': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'command': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'url:gov': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'url:python': 0.33; 'subject:the': 0.34; 'subject:with': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'leads': 0.36; 'sequence': 0.36; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'implement': 0.38; 'handle': 0.38; 'does': 0.39; 'url:action': 0.39; 'url:mail': 0.40; 'how': 0.40; 'here:': 0.62; 'name': 0.63; 'grab': 0.64; 'great': 0.65; 'to:addr:gmail.com': 0.65; 'jul': 0.74; 'url:search': 0.81; 'faced': 0.91; 'joel': 0.91; '2013': 0.98; 'url:ru': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=iWfwakClpfr0UP7KFULTkSM5/j7qUjZd9cBLxkTkNLs=; b=Hs3Pj4KoNYiDWMHCkpVWUAJul/iLyAcUXnSMQhENgalXbsqHVXvqnM27W30zY2TdOP DYrYQ1royIYJZG5IXdAkiL/0Xx5pZuvOfLNLk278F96VoCW9H8Gqs3QQcbL7enSYbRPo dJVSJF/sQNQC52Z4G3aGfnRbRPGWy00WbmCQva+NwscAa2be4roEFyyflL9maWW0iWDl puV7Aa8w0+OTKsBs/lNncTZoZe05kAwL8vD647uSiMyJTcq4JZVMGJ6uKxj/kbTaheN7 gKOAXhtk6KanEJEFOhZDEC3emZhSTgJkjTVgNQqaGbFknT2S1KsVa642b62UV+6bktEG UlCw==
MIME-Version 1.0
X-Received by 10.58.248.40 with SMTP id yj8mr10427407vec.40.1374555914297; Mon, 22 Jul 2013 22:05:14 -0700 (PDT)
In-Reply-To <8fad5326-8518-4554-91bf-1c0b5c97d9bc@googlegroups.com>
References <8fad5326-8518-4554-91bf-1c0b5c97d9bc@googlegroups.com>
Date Tue, 23 Jul 2013 01:05:14 -0400
Subject Re: How to tick checkboxes with the same name?
From Joel Goldstick <joel.goldstick@gmail.com>
To malayrev@gmail.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4992.1374555922.3114.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1374555922 news.xs4all.nl 15993 [2001:888:2000:d::a6]:56867
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51067

Show key headers only | 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