Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'true,': 0.05; 'problem:': 0.07; 'subject:same': 0.07; 'assuming': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'true)': 0.09; 'subject:How': 0.10; 'library),': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'command': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'documented': 0.24; 'header:X-Complaints-To:1': 0.27; "doesn't": 0.30; "i'm": 0.30; 'subject:the': 0.34; 'subject:with': 0.35; 'but': 0.35; 'leads': 0.36; 'sequence': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'implement': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'most': 0.60; 'email addr:gmail.com': 0.63; 'name': 0.63; 'grab': 0.64; 'faced': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: How to tick checkboxes with the same name? Date: Tue, 23 Jul 2013 09:25 +0200 Organization: None References: <8fad5326-8518-4554-91bf-1c0b5c97d9bc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p5084a756.dip0.t-ipconnect.de User-Agent: KNode/4.7.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374564292 news.xs4all.nl 15990 [2001:888:2000:d::a6]:33726 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51073 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.