Your UI definition is not correct. Form it self is not a List. You need to
use a List
as a UI template to get back the List size and then check each of them.

But the more efficient way might be to call runScript(). For example, use
the following jQuery statement
to check all checkboxes.

teJQuery('#aspect_vireo_admin_Settings_
>
> div_form-prefs :checkbox').attr('checked', true);


Thanks,

Jian

On Thu, Jul 22, 2010 at 12:33 PM, Jade <[email protected]> wrote:

> I have a page that uses ajax/jquery and it has 58 checkboxes. I'd like
> to run a test to set all of the checkboxes to checked. Can anyone tell
> me the best way to do this?
>
> Here's the corresponding part of the module:
>
> public void defineUi() {
>                ui.Form(uid: "Formprefs", clocator: [tag: "form", method:
> "post",
> action: "/vireo101/vireo/admin/settings?update=true&page=user", class:
> "ds-interactive-div form-prefs", id:
> "aspect_vireo_admin_Settings_div_form-prefs"])
>
>                {
>
>                        CheckBox(uid: "all", clocator: [tag: "input", type:
> "checkbox"])
>                }
>        }
>
> Jade
>
> --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to