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 .


On 3/2/06, Björn Beskow <[EMAIL PROTECTED]> wrote:
> Could there be a difference in whitespace between the response and your
> asserted string?
>
> /Björn
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: den 1 mars 2006 05:04
> To: [email protected]
> Subject: Jwebunit-development digest, Vol 1 #306 - 1 msg
>
> Send Jwebunit-development mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/jwebunit-development
> or, via email, send a message with subject or body 'help' to
>        [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>        [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Jwebunit-development digest..."
>
>
> Today's Topics:
>
>   1. clickLinkWithText assertion failure error (Sreedhar Kharidehal)
>
> --__--__--
>
> Message: 1
> Date: Tue, 28 Feb 2006 17:59:41 +0530
> From: "Sreedhar Kharidehal" <[EMAIL PROTECTED]>
> To: [email protected]
> Subject: [Jwebunit-development] clickLinkWithText assertion failure error
> Reply-To: [email protected]
>
> Hi all
>
> When i write  something like clickLinkWithText("Admin"); i don't get
> any assertion failure but when i say something like
> clickLinkWithText("View new products"); then  i get
> junit.framework.AssertionFailedError: Link with text [View new
> products] not found in response.
> .I did a dumpResponse(System.out) and i can see "View new products"
> and "Admin" both in the response .Any idea why this is happening
>
> I am using jwebunit 1.2
>
> Thanks
> --
> sreedhar
>
>
>
> --__--__--
>
> _______________________________________________
> Jwebunit-development mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-development
>
>
> End of Jwebunit-development Digest
>
>


--
sreedhar


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to