[Webtest] StoreXPath command failure

Denis N. Antonioli webtest@lists.canoo.com
Tue, 21 Jun 2005 22:58:30 +0200


Hi Ji

I've found last week a similar issue in the handling of attributes in  
xpath by htmlunit.
With the help of Marc, I've uploaded a new version of htmlunit into  
the webtest: htmlunit-20050621.jar.
This new webtest version is available from build 875 on.

Is the error still there with the newest version?

Best
     dna


On 21 juin 05, at 22:24, Ji Yun Kim wrote:

> After checking out Webtest from CVS (with jaxen 1.1 beta 6), I'm  
> having problem with <storeXPath>.
>
> The expression "(//a/img[contains(@src,&quot;someimage.gif&quot;)]) 
> [3]/../@href " used to work (as of june 6 build) and still works  
> with XPE but not in a WebTest script. The message is as follows:
>
> Exception raised: com.canoo.webtest.engine.StepExecutionException:  
> Unexpected exception caught: org.jaxen.XPathSyntaxException: Node- 
> set expected, Step: StoreXPath at /Users/jiyunkim/eclipse/workspace/ 
> webtest/sample/checkout.xml:60:  with (Property="link.href", ->  
> computed value="null"
>
> The other expression count(//a/img[contains 
> (@src,&quot;someimage.gif&quot;)]) works.
>
> If anyone knows of how to get around this problem, please respond.
> Thanks.
>
> Ji
>
>
>

-- 
The trouble with being punctual is that nobody's there to appreciate it.
   -- Franklin P. Jones