Ok, found it !
It was due to a javascript error... the script was looking up for the 
userAgent property which wasn't defined in my test.

So... problem solved.

Fred.

On Friday 14 July 2006 10:27, Julien HENRY wrote:
> Hi,
>
> If you are sure it's an htmlunit bug, no need to post it on jwebunit bug
> tracking.
>
> Thanks for your investigation.
>
> ++
> Julien
>
> ----- Message d'origine ----
> De : Fred <[EMAIL PROTECTED]>
> À : [email protected]
> Envoyé le : Vendredi, 14 Juillet 2006, 10h22mn 28s
> Objet : Re: [Jwebunit-users] Re :  clickLinkWithText problem
>
>
> Ok, after investigations, I finally found out where the issue occurs.
> However, I did not find out why the issue occurs!
> The problem comes from htmlunit...
> I tested the different layers with the same html page:
> 1. jwebunit -> my test failed, but no exception is thrown...
> 2. htmlunit -> I got a org.apache.xerces.xni.XNIException
> Regarding to the stacktrace I got, I though it was due to xerces... So, I
> tested the parsing with xerces, more or less the same way htmlunit is
> calling xerces.
> 3. xerces -> no exception.
> I also tested nekohtml which is called by xerces to parse the file.
>
> I guess it's a bug somewhere in htmlunit, or xerces or even nekohtml...
> I will submit my test case to htmlunit team and see with them what we can
> do.
>
> Do you want me to submit my test case on SF bug tracking of jwebunit too ?
> If you have any suggestions, objections, reactions or comments to share...
> let me know ! :o)
>
> Regards,
>
> Fred.
>
> On Thursday 13 July 2006 11:37, Fred wrote:
> > Er... The error is probably not in htmlunit but in xerces since the
> > parsing seems to be delegated to xerces.
> >
> > Fred.
> >
> > On Thursday 13 July 2006 11:20, Fred wrote:
> > > Hi,
> > >
> > > I also have an issue when I use clickLinkWithExactText(). I'm using
> > > this method multiple times and have no issue but in one test.
> > > My html page is xhtml 1.1 compliant regarding to w3c validator.
> > > I dig a bit further with my debugger and I noticed that the error comes
> > > from htmlunit. The page is well retrieved by the webclient. Once this
> > > page is completely retrieved, it seems that this page is parsed
> > > (probably in order to build a java representation of the page)... at
> > > that point, this fails. Note that I don't get any stacktraces, neither
> > > in my debugger, nor in surefire reports.
> > > The error occurs in
> > > com.gargoylesoftware.htmlunit.html.HtmlParser.parse(final WebResponse
> > > webResponse, final WebWindow webWindow), line 226 on
> > > domBuilder.parse(in); (htmlunit 1.9)
> > >
> > > Gurkan, could you check with a debugger if you have the same issue than
> > > me ? I will try to write a test case to validate these investigations..

*DISCLAIMER*
This e-mail (including any attachments) may contain information which is 
privileged or confidential or constitute non-public information.It is to be 
conveyed only to the intended recipient(s).If you received this e-mail in 
error, please notify the sender immediately by e-mail or telephone and delete 
the e-mail from your system without reading, copying or disclosing its contents 
to any other person.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to