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...
>
> Regards,
>
> Fred.
>
> On Wednesday 12 July 2006 10:28, Gurkan Nisanci wrote:
> > Hi Julien,
> >
> > Unfortunately, I can't access the HTML's source code in order to modify
> > the target attribute's value:( Did you check clickLinkWithText works OK
> > with non XML compliant html attributes?
> >
> > Gurkan
> >
> > Julien HENRY wrote:
> > > Hi,
> > >
> > > clickLinkWithText should work... could you try with target="body"
> > > which is XML compliant.
> > >
> > > ++
> > > Julien
> > >
> > > ----- Message d'origine ----
> > > De : Gurkan Nisanci <[EMAIL PROTECTED]>
> > > À : [email protected]
> > > Envoyé le : Mardi, 4 Juillet 2006, 11h03mn 30s
> > > Objet : [Jwebunit-users] clickLinkWithText problem
> > >
> > > Hello,
> > >
> > > I use jwebunit 1.3 RC-1 and  want to click on a link in a page. The
> > > link's html is as follows:
> > > ...
> > > <a href="listAllEntries.aspx?stuff_no=1234" TARGET=BODY>My Entries</a>
> > >
> > > ...
> > >
> > > To go to link I execute:
> > >
> > > clickLinkWithText("My Entries");
> > >
> > > However nothing happens, the page doesn't go to link and stays as is.
> > > This method works? Problem may occur when a TARGET attribute is added
> > > to <a> tag?
> > >
> > > Thanks
> > >
> > >
> > > Gurkan Nisanci
> > >
> > > 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=12164
> > >2
> > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216
> > >42
> > >
> > >> _______________________________________________
> > >
> > > Jwebunit-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> > >
> > > -----------------------------------------------------------------------
> > >-
> > >
> > > 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=12164
> > >2
> > >
> > > -----------------------------------------------------------------------
> > >-
> > >
> > > _______________________________________________
> > > Jwebunit-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/jwebunit-users
> >
> > -------------------------------------------------------------------------
> > 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
>
> *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


-------------------------------------------------------------------------
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