Hi Peter, it's a feature to take the first option in such a case.
If you want to check many checkboxes you have to use repeat: <repeat xpath="//table//td[1]/[EMAIL PROTECTED]'checkbox']" counterName="currentCheckbox"> <setCheckbox xpath="$currentCheckbox" checked="true"/> </repeat> The same applies for links and buttons, but in this case you have to be careful depending on the work flows that may get started. Marc. -- Blog: http://mguillem.wordpress.com Peter Ledbrook wrote: > Hi, > > I have several cases where I have a list of items, each of which has a > link, button, or checkbox. How do I click on all the > links/buttons/checkboxes when I don't know how many items are in the > list beforehand? > > I have tried code like this: > > setCheckbox( > xpath: "//table/tbody/tr/td[1]/[EMAIL PROTECTED]'checkbox']", > checked: true) > > but this doesn't seem to work. I could store the number of rows in a > property, but I don't think I can access the property from the host > groovy code. Otherwise I could simply use a groovy loop. > > Any ideas? > > Thanks, > > Peter > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

