It would be better if you could send a self-contained complete TestCase along with a small HTML file which you are trying to test. I mean, just give us something so that we can reproduce this issue that you are facing. With the information and code snippet you have sent, there is not much help that I can give.
Anyway, just check if there is any _javascript_ function getting called when you click on the first link. Some _javascript_ elements are not supported by httpunit yet and hence I have faced and solved similar issues before.
cheers
nilesh
On 3/7/06, Sreedhar Kharidehal <[EMAIL PROTECTED]> wrote:
Hi ,i am trying to click a link based on the text using the following
piece of code
tester.assertLinkPresentWithText(text);
tester.clickLinkWithText(text);
tester.dumpResponse(System.out);
tester.assertLinkPresentWithText("Link2")
I am reading the string text from a file.
The assert part works fine but it seems it does not click the link .I
get an assertion failure on the line where i check the presence of
link "Link2 ".In dumpResponse i see that i am on the same page .
Not able to figure out as to what is happening here.
--
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?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
