This looks similar to something I ran across. I can take a stab at a
simplified test case of what I think he is talking about it would be like below:
<html>
<head><title>I am a title</title></head>
<body></body></html>
<a href="www.google.com">Test</a>
</body>
</html>
Fails with the below code:
<config host="c:\WebTest HEAD\tests" protocol="file"/>
<invoke url="c:\WebTest HEAD\tests\test.html"/>
<clickLink label="Test"/>
With error: Link not found in page file:/c:/WebTest HEAD/tests/test.html
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Guillemot
Sent: Wednesday, April 30, 2008 10:00 AM
To: [email protected]
Subject: Re: [Webtest] ajax, reload and parallels tasks
drf wrote:
> ...
> yes, it does. I looked harder and the issue probably is that the html
> file, before the links I want, has a stray </body></html> bit...
> actually the whole page is screwy with <html> in several places....
> which also explains why my xpath wasn't working.
>
> so I don't think this page is a fair test!
it is questionable to have a tool that accepts ugly html code when you build a
webapp as you want to produce good html code. Nevertheless
WebTest/HtmlUnit/NekoHTML get always more used to test applications that
already exists and therefore they should be able to cope with ugly html code.
Therefore your example is welcome (simplified is better).
Cheers,
Marc.
--
Blog: http://mguillem.wordpress.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