The browser object has a select_form method. That selects a form to work on
and the the browser can be used like a dictionary to set values of the
form.

b.select_form(index=1)

And now b works like a client form object.

b['name'] = 'foo'

I don't remember how checkboxes behave. You can get access to the client
form object from b.form.

See client form documentation to see how that works.

http://wwwsearch.sourceforge.net/old/ClientForm/

Anand



On Mon, Jun 10, 2013 at 2:29 PM, W. Martin Borgert <[email protected]>wrote:

> Quoting "Tomas Schertel" <[email protected]>:
>
>> Maybe you can use web.browser:
>>
>>  import web
>>>>> web.browser.__doc__
>>>>>
>>>> 'Browser to test web applications.\n(from web.py)\n'
>>
>
> web.browser looks really nice, thanks for the hint!
>
> Unfortunately, web.browser is not documented extensively.
> E.g. it is not clear to me how to (un)check a checkbox or
> select a radio button.
>
> Does anybody know how to do this? TIA!
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> webpy+unsubscribe@**googlegroups.com<webpy%[email protected]>
> .
> To post to this group, send email to [email protected].
> Visit this group at 
> http://groups.google.com/**group/webpy?hl=en<http://groups.google.com/group/webpy?hl=en>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>


-- 
Anand
http://anandology.com/

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to