If you build jWebUnit from the CVS source, there are additional assertions which takes regular expressions (assertMatch(String regexp) etc). They should solve that particular problem.
I guess it is really time for a 1.3 release soon!
Regards
/Björn
-----Original Message-----
Hi bjorn ,thanks for the reply .You were correct ,It was because of
the whitespaces.Can i anyway remove them in code ?.For example i have
a page where i enter values like name ,date of birth etc.Now i want to
check the values in the preview page next to the values .In the
preview page ,values are displayed next to field name like
username:name
city:australia
In short i want to use something like
assertTextPresent("username"+name)
But right now if the response has whitespaces the above assert fails .
<<attachment: winmail.dat>>
