[Webtest] Decrement in fieldIndex
Vikenty Menshutkin
webtest@lists.canoo.com
Mon, 17 Oct 2005 10:56:15 +0400
I use storeXPath with 'count':
<storeXPath
xpath="count(//td[input/@type='checkbox'])"
property="checkBox_count" />
The "checkBox_count" property is definitely int!
Why step.webtestProperties.checkBox_count returns NaN?
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com] On Behalf Of Dierk Koenig
> Sent: Friday, October 14, 2005 6:06 PM
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] Decrement in fieldIndex
>
> > I cant understand how to use
> step.webtestProperties.my_property =( It
> > returns "NaN".. Any suggestions?
>
> NaN stands for 'not a number'.
>
> Your expression may contain some code that tries to do
> numerical calculation with a String value.
> Depending on your language in use you need to explicitely
> convert it to a number.
>
> cheers
> Mittie
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest