[Webtest] Decrement in fieldIndex
Vikenty Menshutkin
webtest@lists.canoo.com
Tue, 18 Oct 2005 11:23:12 +0400
> have you tried this:
>
> <storeXPath
> xpath="count(//td[input/@type='checkbox'])"
> property="checkBox_count" />
> <setCheckbox
> name="selected"
> fieldIndex="#{checkBox_count}"
> checked="false" />
> ?
I use this in <repeat count="#{checkBox_count}">
This failed with message "Can't set field with index '78', valid range is
0..77" that's why I`m trying to use scriptStep (exactly I need to decrement
#{checkBox_count} in fieldIndex)
> If yes, and it fails, what happens if you try:
>
> <setCheckbox
> name="selected"
> fieldIndex="77"
> checked="false" />
> ?
This works ok, but I don't need this.