that's all reasonable and well spotted. Go for it ;-)
Mittie
-----Original Message-----
From: webt...@lists.canoo.com
[mailto:webt...@lists.canoo.com]On Behalf Of Marc Guillemot
Sent: Donnerstag, 8. Dezember 2005 17:55
To: webt...@lists.canoo.com
Subject: [Webtest] small change to verifyXPath?
Hi,
when no text attribute is provided to verifyXPath, the step just checks
that the xpath gives a "result". The consequence in the case of a
boolean result is that something like
<verifyXPath xpath="1 > 2"/>
will be successfull although 1 < 2 (at least on my computer ;-)). The
reason is that the xpath evaluates to false which is converted to the
non empty string "false" and therefore the step is successfull.
What I propose it to change this behaviour when the xpath evaluates to a
boolean and no text is provided and make the step fail when the xpath
evaluates to the boolean false.
What do you think?
Marc.