Hi,

Well you could use a regular expression as the text to search for with 
[regex="true"] in the verifyText tag.
Also take a look at the "resulting page" to see what you are actually checking 
against. For instance, html source code could contain things like " " 
instead of a "space"... Et cetera...

HTH, Regards,
Thomas


Thomas Klein

Senior Associate, QA | Sapient

 

Sapient GmbH
Hammer Str. 19

40219 Düsseldorf
Deutschland

 

Tel.: +49 211.54034-202

Mobil: +49 162.2773-202

Fax: +49 211.54034-600

e-Mail: [email protected]

www.sapient.com

 

Geschäftsführung: Dr. Christian Oversohl, Wolf Ingomar Faecks

Handelsregister: Amtsgericht München HRB 161057, Sitz der Gesellschaft: München

USt.-IdNr. DE-210831918

 

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort die Sapient GmbH unter +49 89 552 987-0 und 
löschen Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser E-Mail und der darin enthaltenen Informationen ist nicht 
gestattet. Vielen Dank.

 

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this email in error) please 
immediately notify Sapient GmbH on +49 89 552 987-0 and delete this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this e-mail 
is strictly forbidden. Thank you for your cooperation.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Iain_10
Sent: Monday, February 15, 2010 2:58 PM
To: [email protected]
Subject: [Webtest] verifyText -> How to verify lines containing characters?


Hi,

I am using verifyText as follows:

<verifyText text="/* = Required Fields/"/>

However my test fails as it says the text is not found in the page even
though it is present.

Is this the correct way to use verifyText to check for characters other than
letters?

thanks!
-- 
View this message in context: 
http://old.nabble.com/verifyText--%3E-How-to-verify-lines-containing-characters--tp27594121p27594121.html
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to