[Webtest] Re: <not> step not working?
Mart Toom
Mart Toom <mart.toom@aqris.com>
Tue, 08 Jan 2008 12:35:32 +0200
Hi Marc,
Thanks for suggestion.
But suggested xpath didnt work with <verifyXPath> step (or actually it "worked" and found something) so my <not> step still failed.
When used storeXPath to check what this xpath will find, then I got answer that such element was not found. So I changed temporarily from <verifyXPath> to <storeXPath>.
When HtmlUnit 1.14 release can be expected?
Keep up good work!
Mart
Marc Guillemot wrote:
> Hi Mart,
>
> this is due to a bug in HtmlUnit 1.13 (fixed in next release): the xpath
> function id(...) throws an exception if no element is found with this
> id. You can change your xpath to //*[@id='some nonexisting element'].
>
> Cheers,
> Marc.