Do you mean the click() did not work? Usually, to simulate a user "click" action, the jQuery click() method may not be enough. If you have a chance to see Selenium core code, you will know how many things need to happen under the hood.
If the click() command did not work in runScript(), perhaps you need to call click() from Tellurium API level, which may be a bit slower than calling runScript, but should guarantee the click event is fired correctly. Thanks, Jian On Thu, Jul 22, 2010 at 5:02 PM, Jade <[email protected]> wrote: > Hi Jian, > > Thanks again for your quick reply. The jQuery is timing out after 30 > seconds. As a test, I changed the script to just click on one checkbox > named LIST_COLUMN_ASSIGNED_TO > > runScript > ("teJQuery('input:checkbox[name=LIST_COLUMN_ASSIGNED_TO]').click();"); > > However, this is also timing out. Since the checkbox's save their > state to the database when they're clicked (via ajax), the test script > has to click them instead of just set the attribute checked to true. > > Jade > > On Jul 22, 11:44 am, Jian Fang <[email protected]> wrote: > > 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]> > <tellurium-users%[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.
