How to tick checkboxes with the same name?
Peter Otten
__peter__ at web.de
Tue Jul 23 03:25:00 EDT 2013
malayrev at 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.
More information about the Python-list
mailing list