cool. good oberservation. While one has to be careful with semantics when using this as a general advice, e.g. (//select/option)[1] may not be the same as //select/option[1] in case there are multiple selects in the doc.
Anyway, thanks for your post. cheers Mittie > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Ji Yun Kim > Sent: Freitag, 2. Dezember 2005 19:25 > To: [EMAIL PROTECTED] > Subject: Re: [Webtest] Re: XPath support... > > > >> xpath="(//[EMAIL PROTECTED]'add_w1_sel']/option)[0 + 1]" > > I had this happen and putting "(", ")" around the list made it work. > in XPE, both exprs worked. > > On Dec 2, 2005, at 10:11 AM, Dierk Koenig wrote: > > > Did you also try > > option[(0 + 1)] > > ? > > > > cheers > > Mittie > > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] Behalf Of Colin O'Brien > >> Sent: Freitag, 2. Dezember 2005 18:59 > >> To: [email protected] > >> Subject: RE: [Webtest] Re: XPath support... > >> > >> > >> Hi Marc, > >> > >> I've tried to call it outside the loop and I get the same result... > >> > >> The following works without any problem > >> <storeXPath > >> description="arithmetic test" > >> xpath="(6 + 42)" > >> property="testProp" > >> /> > >> > >> Result = 48 > >> > >> Regards, > >> Colin. > >> > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED] Behalf Of Marc Guillemot > >> Sent: 02 December 2005 16:04 > >> To: [email protected] > >> Subject: [Webtest] Re: XPath support... > >> > >> > >> Have you tried to call it outside of the loop: > >> > >> <storeXPath > >> description="Store portlet name" > >> xpath="//[EMAIL PROTECTED]'add_w1_sel']/option[0 + 1]" > >> property="portletName" > >> /> > >> > >> Marc. > >> > >> > >> _______________________________________________ > >> WebTest mailing list > >> [email protected] > >> http://lists.canoo.com/mailman/listinfo/webtest > > _______________________________________________ > > WebTest mailing list > > [email protected] > > http://lists.canoo.com/mailman/listinfo/webtest > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

