Hi,
If you are sure it's an htmlunit bug, no need to post it on jwebunit bug tracking.
Thanks for your investigation.
++
Julien
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...
> >
> > 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="" 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=121
> > > >64 2
> > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=12
> > > >16 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=121
> > > >64 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=12164
> > >2 _______________________________________________
> > > 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
-------------------------------------------------------------------------
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
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...
> >
> > 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="" 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=121
> > > >64 2
> > > > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=12
> > > >16 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=121
> > > >64 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=12164
> > >2 _______________________________________________
> > > 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
-------------------------------------------------------------------------
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
