[Webtest] How can i use wt:cleanText

Soula, William Soula, William" <wsoula@pointserve.com
Wed, 24 Sep 2008 12:02:57 -0500

        <td name=3D"td">I have extra space after me

This works:
<verifyXPath xpath=3D"//table[wt:cleanText(td)=3D'I have an extra space aft=
er me']"/>

The other way to verify text in xpath is to use the text() function but thi=
s only works if there is no trailing space so it won't work in the above ex=
ample but will work in the following example:
        <td name=3D"td">I do not have extra space</td>

<verifyXPath xpath=3D"//table[td/text()=3D'I do not have extra space']"/>

-----Original Message-----
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
On Behalf Of dariusch
Sent: Wednesday, September 24, 2008 10:44 AM
To: webtest@lists.canoo.com
Subject: [Webtest] How can i use wt:cleanText


i can't find this possibility, how can i use it? Maybe you show me an examp=
le like this:

<webtest name=3D"my simple Test">
        description=3D"get Login Page" />

        call "wt:cleanText"

        text=3D"Login Page"
        description=3D"we should see the login title" /> </webtest>

View this message in context: http://www.nabble.com/How-can-i-use-wt%3Aclea=
Sent from the WebTest mailing list archive at Nabble.com.

WebTest mailing list