3 messages in com.canoo.lists.webtest[Webtest] Clicking multiple links/but...
FromSent OnAttachments
Peter Ledbrook14 Sep 2007 05:46 
Marc Guillemot14 Sep 2007 12:53 
Peter Ledbrook14 Sep 2007 13:36 
Subject:[Webtest] Clicking multiple links/buttons/checkboxes
From:Peter Ledbrook (pet@cacoethes.co.uk)
Date:09/14/2007 05:46:18 AM
List:com.canoo.lists.webtest

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]/input[@type='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