You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Marc G. <mgu...@ya...> - 2005-08-22 14:36:33
|
Salut Romain, > I don't understand what can be the issue ? I only work with Eclipse, and > the problem only occurs with CVS source. Can you explain ? Not really. Try to look at the cause of the cause of the cause... of your XNIException (there are often many nested InvocationTargetException and XNIException) it should give you the real cause of the problem. > I tried to download the current source and restart the test, it's the > same result (I still find the building if junit reports very long : > nearly 40 min, is it normal ?). not normal. Do you use ant or maven? The maven "jar" goal just took 3'30'' on my computer. > > Do you think that the initial problem with the frames may be quickly > solved ? The way I will continue my project (a test tool) strongly > depends on it. I'm quite confident that this issue can be quickly solved. If you need special support, you can contact me privately. Marc. |
From: Romain T. <rth...@sf...> - 2005-08-22 14:10:50
|
I don't understand what can be the issue ? I only work with Eclipse, and=20 the problem only occurs with CVS source. Can you explain ? I tried to download the current source and restart the test, it's the=20 same result (I still find the building if junit reports very long :=20 nearly 40 min, is it normal ?). Do you think that the initial problem with the frames may be quickly=20 solved ? The way I will continue my project (a test tool) strongly=20 depends on it. Thanks for your help. Romain. Marc Guillemot a =E9crit : > For me the example you provided works well with current CVS sources.=20 > Look at the archives the thread concerning "XNIException in Maven but=20 > not in Eclipse". Perhaps do you have a similar classpath issue. > > Marc. > > > Romain Thouvenin wrote: > >> Yes, when executing my example ( getPage(new=20 >> URL("http://localhost:8080/pages/")); ). >> Here is what the logger said about js : >> [DEBUG] JavaScriptConfiguration - browser tag not yet handled for=20 >> class com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject >> [DEBUG] JavaScriptConfiguration - javascript tag not yet handled for=20 >> class com.gargoylesoftware.htmlunit.javascript.host.Anchor >> [DEBUG] Window - Property "Object" of=20 >> com.gargoylesoftware.htmlunit.javascript.host.Window@141b571 not=20 >> defined as pure js property >> [DEBUG] Window - Property "Object" of=20 >> com.gargoylesoftware.htmlunit.javascript.host.Window@141b571 not=20 >> defined as pure js property >> >> Hope this helps, >> Romain. >> >> Marc Guillemot a =E9crit : >> >>> In which case do you get this exception? Executing your example?=20 >>> Then it's probably due to an execution while executing the onload=20 >>> js. What do you get on the log? >>> >>> Marc. >>> >>> Romain Thouvenin wrote: >>> >>>> I finally managed to make the jar file (in fact there was no=20 >>>> problem, making reports was just quite long). >>>> There may be a bug in the latest version (downloaded this morning),=20 >>>> a XNI exception was reported that was not with release 1.6. >>>> The stack trace : >>>> org.apache.xerces.xni.XNIException >>>> at=20 >>>> org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:= 1860)=20 >>>> >>>> at=20 >>>> org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) >>>> at=20 >>>> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:47= 8) >>>> at=20 >>>> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:43= 1) >>>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>>> at=20 >>>> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.par= se(HTMLParser.java:330)=20 >>>> >>>> at=20 >>>> com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:= 245)=20 >>>> >>>> at=20 >>>> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(Defa= ultPageCreator.java:116)=20 >>>> >>>> at=20 >>>> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultP= ageCreator.java:84)=20 >>>> >>>> at=20 >>>> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClien= t.java:671)=20 >>>> >>>> at=20 >>>> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) >>>> at=20 >>>> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377) >>>> at com.sfwan.tester.tests.TestNavig.main(TestNavig.java:32) >>>> >>>> The complete source file can be found in a precedent mail of this=20 >>>> thread. >>>> >>>> Romain. >>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>> Testing & QA >>> Security * Process Improvement & Measurement *=20 >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Marc G. <mgu...@ya...> - 2005-08-22 12:42:48
|
For me the example you provided works well with current CVS sources. Look at the archives the thread concerning "XNIException in Maven but not in Eclipse". Perhaps do you have a similar classpath issue. Marc. Romain Thouvenin wrote: > Yes, when executing my example ( getPage(new > URL("http://localhost:8080/pages/")); ). > Here is what the logger said about js : > [DEBUG] JavaScriptConfiguration - browser tag not yet handled for class > com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject > [DEBUG] JavaScriptConfiguration - javascript tag not yet handled for > class com.gargoylesoftware.htmlunit.javascript.host.Anchor > [DEBUG] Window - Property "Object" of > com.gargoylesoftware.htmlunit.javascript.host.Window@141b571 not defined > as pure js property > [DEBUG] Window - Property "Object" of > com.gargoylesoftware.htmlunit.javascript.host.Window@141b571 not defined > as pure js property > > Hope this helps, > Romain. > > Marc Guillemot a écrit : > >> In which case do you get this exception? Executing your example? Then >> it's probably due to an execution while executing the onload js. What >> do you get on the log? >> >> Marc. >> >> Romain Thouvenin wrote: >> >>> I finally managed to make the jar file (in fact there was no problem, >>> making reports was just quite long). >>> There may be a bug in the latest version (downloaded this morning), a >>> XNI exception was reported that was not with release 1.6. >>> The stack trace : >>> org.apache.xerces.xni.XNIException >>> at >>> org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1860) >>> >>> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) >>> at >>> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) >>> at >>> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) >>> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >>> at >>> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:330) >>> >>> at >>> com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:245) >>> at >>> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116) >>> >>> at >>> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:84) >>> >>> at >>> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:671) >>> >>> at >>> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) >>> at >>> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377) >>> at com.sfwan.tester.tests.TestNavig.main(TestNavig.java:32) >>> >>> The complete source file can be found in a precedent mail of this >>> thread. >>> >>> Romain. >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Romain T. <rth...@sf...> - 2005-08-22 12:34:31
|
Yes, when executing my example ( getPage(new=20 URL("http://localhost:8080/pages/")); ). Here is what the logger said about js : [DEBUG] JavaScriptConfiguration - browser tag not yet handled for class=20 com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject [DEBUG] JavaScriptConfiguration - javascript tag not yet handled for=20 class com.gargoylesoftware.htmlunit.javascript.host.Anchor [DEBUG] Window - Property "Object" of=20 com.gargoylesoftware.htmlunit.javascript.host.Window@141b571 not defined=20 as pure js property [DEBUG] Window - Property "Object" of=20 com.gargoylesoftware.htmlunit.javascript.host.Window@141b571 not defined=20 as pure js property Hope this helps, Romain. Marc Guillemot a =E9crit : > In which case do you get this exception? Executing your example? Then=20 > it's probably due to an execution while executing the onload js. What=20 > do you get on the log? > > Marc. > > Romain Thouvenin wrote: > >> I finally managed to make the jar file (in fact there was no problem,=20 >> making reports was just quite long). >> There may be a bug in the latest version (downloaded this morning), a=20 >> XNI exception was reported that was not with release 1.6. >> The stack trace : >> org.apache.xerces.xni.XNIException >> at=20 >> org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:18= 60)=20 >> >> at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789= ) >> at=20 >> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) >> at=20 >> org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) >> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) >> at=20 >> com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse= (HTMLParser.java:330)=20 >> >> at=20 >> com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:24= 5) >> at=20 >> com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(Defaul= tPageCreator.java:116)=20 >> >> at=20 >> com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPag= eCreator.java:84)=20 >> >> at=20 >> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.= java:671)=20 >> >> at=20 >> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) >> at=20 >> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377) >> at com.sfwan.tester.tests.TestNavig.main(TestNavig.java:32) >> >> The complete source file can be found in a precedent mail of this=20 >> thread. >> >> Romain. > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Marc G. <mgu...@ya...> - 2005-08-22 12:04:46
|
In which case do you get this exception? Executing your example? Then it's probably due to an execution while executing the onload js. What do you get on the log? Marc. Romain Thouvenin wrote: > I finally managed to make the jar file (in fact there was no problem, > making reports was just quite long). > There may be a bug in the latest version (downloaded this morning), a > XNI exception was reported that was not with release 1.6. > The stack trace : > org.apache.xerces.xni.XNIException > at > org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1860) > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) > at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) > at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:330) > > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:245) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116) > > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:84) > > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:671) > > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377) > at com.sfwan.tester.tests.TestNavig.main(TestNavig.java:32) > > The complete source file can be found in a precedent mail of this thread. > > Romain. |
From: Romain T. <rth...@sf...> - 2005-08-22 12:00:08
|
I finally managed to make the jar file (in fact there was no problem,=20 making reports was just quite long). There may be a bug in the latest version (downloaded this morning), a=20 XNI exception was reported that was not with release 1.6. The stack trace : org.apache.xerces.xni.XNIException at=20 org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1860) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) at=20 org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) at=20 org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at=20 com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HT= MLParser.java:330) at=20 com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:245) at=20 com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPa= geCreator.java:116) at=20 com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCr= eator.java:84) at=20 com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.jav= a:671) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338= ) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377= ) at com.sfwan.tester.tests.TestNavig.main(TestNavig.java:32) The complete source file can be found in a precedent mail of this thread. Romain. Marc Guillemot a =E9crit : > Try > maven htmlunit:test > it provides a better report on the console. > > I have sometimes the problem that tests for timeouts fail if I=20 > continue to use "intensively" my computer during the execution. In=20 > this case the execution delay is not the expected one. The solution=20 > for this problem is to make a pause while the test run. > > Marc. > > > Romain Thouvenin wrote: > >> I got the latest CVS sources and built it with ant, but it seems to=20 >> fail during the building of the junit reports (Nothing is written in=20 >> the console for a long time, after the directory was created). I'm so=20 >> unable to make the jar with ant, and I don't have maven. What can be=20 >> the cause of the problem ? >> >> Romain >> >> Marc Guillemot a =E9crit : >> >>> seems to be a pb by sf. >>> >>> Marc. >>> >>> Romain Thouvenin wrote: >>> >>>> The cvs command didn't success : "unrecognized auth response from=20 >>>> cvs.sourceforge.net: M -!- Project map lookup failed ()" >>>> Is there a problem with sourceforge, or did I make a mistake ? >>>> >>>> Romain. >>>> >>>> Romain Thouvenin a =E9crit : >>>> >>>>> Marc Guillemot a =E9crit : >>>>> >>>>>> Which version of htmlunit do you use? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> version 1.6, latest downloadable version (downloaded yesterday :) ) >>>>> >>>>>> >>>>>> I guess that it is related to >>>>>> http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D11015= 25&group_id=3D47038&atid=3D448266=20 >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Maybe. The problem looks like very similar. >>>>> >>>>>> >>>>>> which has been fixed since version 1.6. Can you try with last CVS=20 >>>>>> sources? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Ok, I'm going to try now. >>>>> >>>>>> >>>>>> Marc. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Romain. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>> Testing & QA >>>> Security * Process Improvement & Measurement *=20 >>>> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Htmlunit-user mailing list >>>> Htm...@li... >>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>> Testing & QA >>> Security * Process Improvement & Measurement *=20 >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Marc G. <mgu...@ya...> - 2005-08-22 09:49:46
|
Try maven htmlunit:test it provides a better report on the console. I have sometimes the problem that tests for timeouts fail if I continue to use "intensively" my computer during the execution. In this case the execution delay is not the expected one. The solution for this problem is to make a pause while the test run. Marc. Romain Thouvenin wrote: > I got the latest CVS sources and built it with ant, but it seems to fail > during the building of the junit reports (Nothing is written in the > console for a long time, after the directory was created). I'm so unable > to make the jar with ant, and I don't have maven. What can be the cause > of the problem ? > > Romain > > Marc Guillemot a écrit : > >> seems to be a pb by sf. >> >> Marc. >> >> Romain Thouvenin wrote: >> >>> The cvs command didn't success : "unrecognized auth response from >>> cvs.sourceforge.net: M -!- Project map lookup failed ()" >>> Is there a problem with sourceforge, or did I make a mistake ? >>> >>> Romain. >>> >>> Romain Thouvenin a écrit : >>> >>>> Marc Guillemot a écrit : >>>> >>>>> Which version of htmlunit do you use? >>>> >>>> >>>> >>>> >>>> >>>> version 1.6, latest downloadable version (downloaded yesterday :) ) >>>> >>>>> >>>>> I guess that it is related to >>>>> http://sourceforge.net/tracker/index.php?func=detail&aid=1101525&group_id=47038&atid=448266 >>>>> >>>> >>>> >>>> >>>> >>>> >>>> Maybe. The problem looks like very similar. >>>> >>>>> >>>>> which has been fixed since version 1.6. Can you try with last CVS >>>>> sources? >>>> >>>> >>>> >>>> >>>> >>>> Ok, I'm going to try now. >>>> >>>>> >>>>> Marc. >>>> >>>> >>>> >>>> >>>> >>>> Romain. >>> >>> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >>> & QA >>> Security * Process Improvement & Measurement * >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Romain T. <rth...@sf...> - 2005-08-22 09:44:15
|
I got the latest CVS sources and built it with ant, but it seems to fail=20 during the building of the junit reports (Nothing is written in the=20 console for a long time, after the directory was created). I'm so unable=20 to make the jar with ant, and I don't have maven. What can be the cause=20 of the problem ? Romain Marc Guillemot a =E9crit : > seems to be a pb by sf. > > Marc. > > Romain Thouvenin wrote: > >> The cvs command didn't success : "unrecognized auth response from=20 >> cvs.sourceforge.net: M -!- Project map lookup failed ()" >> Is there a problem with sourceforge, or did I make a mistake ? >> >> Romain. >> >> Romain Thouvenin a =E9crit : >> >>> Marc Guillemot a =E9crit : >>> >>>> Which version of htmlunit do you use? >>> >>> >>> >>> >>> version 1.6, latest downloadable version (downloaded yesterday :) ) >>> >>>> >>>> I guess that it is related to >>>> http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1101525= &group_id=3D47038&atid=3D448266=20 >>>> >>> >>> >>> >>> >>> Maybe. The problem looks like very similar. >>> >>>> >>>> which has been fixed since version 1.6. Can you try with last CVS=20 >>>> sources? >>> >>> >>> >>> >>> Ok, I'm going to try now. >>> >>>> >>>> Marc. >>> >>> >>> >>> >>> Romain. >> >> >> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: <st...@an...> - 2005-08-21 10:10:23
|
So i posted the patch here: https://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1265410&gro= up_id=3D47038&atid=3D448268 Stefan |
From: Marc G. <mgu...@ya...> - 2005-08-19 14:52:03
|
seems to be a pb by sf. Marc. Romain Thouvenin wrote: > The cvs command didn't success : "unrecognized auth response from > cvs.sourceforge.net: M -!- Project map lookup failed ()" > Is there a problem with sourceforge, or did I make a mistake ? > > Romain. > > Romain Thouvenin a écrit : > >> Marc Guillemot a écrit : >> >>> Which version of htmlunit do you use? >> >> >> >> version 1.6, latest downloadable version (downloaded yesterday :) ) >> >>> >>> I guess that it is related to >>> http://sourceforge.net/tracker/index.php?func=detail&aid=1101525&group_id=47038&atid=448266 >>> >> >> >> >> Maybe. The problem looks like very similar. >> >>> >>> which has been fixed since version 1.6. Can you try with last CVS >>> sources? >> >> >> >> Ok, I'm going to try now. >> >>> >>> Marc. >> >> >> >> Romain. > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Romain T. <rth...@sf...> - 2005-08-19 14:30:53
|
The cvs command didn't success : "unrecognized auth response from=20 cvs.sourceforge.net: M -!- Project map lookup failed ()" Is there a problem with sourceforge, or did I make a mistake ? Romain. Romain Thouvenin a =E9crit : > Marc Guillemot a =E9crit : > >> Which version of htmlunit do you use? > > > version 1.6, latest downloadable version (downloaded yesterday :) ) > >> >> I guess that it is related to >> http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1101525&g= roup_id=3D47038&atid=3D448266=20 >> > > > Maybe. The problem looks like very similar. > >> >> which has been fixed since version 1.6. Can you try with last CVS=20 >> sources? > > > Ok, I'm going to try now. > >> >> Marc. > > > Romain. |
From: Romain T. <rth...@sf...> - 2005-08-19 14:17:24
|
Marc Guillemot a =E9crit : > Which version of htmlunit do you use? version 1.6, latest downloadable version (downloaded yesterday :) ) > > I guess that it is related to > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1101525&gr= oup_id=3D47038&atid=3D448266=20 > Maybe. The problem looks like very similar. > > which has been fixed since version 1.6. Can you try with last CVS=20 > sources? Ok, I'm going to try now. > > Marc. Romain. > > > Romain Thouvenin wrote: > >> The page is an index page with a very short code, I send it : >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"=20 >> "http://www.w3.org/TR/html4/frameset.dtd"> >> <html lang=3Dfr> >> <head> >> <meta http-equiv=3D"Content-Type" content=3D"text/html;=20 >> charset=3Diso-8859-1" > >> <script type=3D"text/javascript" language=3D"JavaScript"> >> function connect(){ >> this.appli.location=3D"main/index.jsp"+this.location.search; >> } >> </script> >> <title>Aguila</title> >> <link rel=3D"icon" type=3D"image/png" href=3D"pages/design/logos/icone= .png" > >> </head> >> <frameset onload=3D"javascript:connect();" rows=3D"17,18,*,43" border=3D= "0" > >> <frame src=3D"index_header.htm" name=3D"nav" scrolling=3D"NO"=20 >> frameborder=3D"0" marginwidth=3D"0" marginheight=3D"0" noresize > >> <frame src=3D"index_header.htm" name=3D"menu" scrolling=3D"NO"=20 >> frameborder=3D"0" marginwidth=3D"0" marginheight=3D"0" noresize > >> <frame src=3D"" name=3D"appli" scrolling=3D"AUTO" frameborder=3D"0= "=20 >> marginwidth=3D"0" marginheight=3D"0" noresize > >> >> <frame src=3D"index_footer.htm" name=3D"bas" scrolling=3D"NO"=20 >> frameborder=3D"0" marginwidth=3D"0" marginheight=3D"0"> >> </frameset> >> </html> >> >> The error was message was exactly what I said (with a space missing=20 >> between index.jap and is). >> Since the code is very short, it may be useless to add some=20 >> alert(...). I guess HtmlUnit create the frameset, with an empty=20 >> "appli" frame, then call connect(), and fails at the only line of=20 >> the function. >> >> Since this.appli has no location, maybe HtmlUnit cannot append=20 >> "main/index.jsp" to nothing, and thus put a "about:" before ? >> Hope it helps, >> >> Romain >> >> Marc Guillemot a =E9crit : >> >>> I try to understand why it leads to this mis-interpretation. Is the=20 >>> previous location of this.appli "about:blank"? >>> >>> Have you the possibility to add some alert(...) in the html code to=20 >>> understand what htmlunit is doing and at which point it fails? >>> >>> Marc. >>> >>> Romain Thouvenin wrote: >>> >>>> Nothing, you're right. But a "normal" brower is not expected to=20 >>>> transform the "location=3D..." into "about:...", is it ? >>>> Firefox and IE simply add the ... to the current url. >>>> >>>> Romain >>>> >>>> Marc Guillemot a =E9crit : >>>> >>>>> and what should a "normal" browser answer for "about:main/index.jsp= "? >>>>> >>>>> Marc. >>>>> >>>>> Romain Thouvenin wrote: >>>>> >>>>>> Well, I didn't try to identify what was the problem in the js=20 >>>>>> since the message of the exception reported said : >>>>>> "about:main/index.jsp is not supported, only about:blank is=20 >>>>>> supported" (or something like that). >>>>>> So I thought there is nothing to do except from waiting it is=20 >>>>>> supported... >>>>>> Is the script wrong ? >>>>>> >>>>>> Your solution is a good idea, I may use it. Thanks. >>>>>> >>>>>> Romain >>>>>> >>>>>> Marc Guillemot a =E9crit : >>>>>> >>>>>>> As a workaround you can probably use >>>>>>> webClient.setCurrentWindow(thePage.getFrameByName("theName")); >>>>>>> webClient.getPage(yourNewUrl); >>>>>>> >>>>>>> Nevertheless you should take the time to identify why htmlunit=20 >>>>>>> can't execute your js. Normally htmlunit should be able to=20 >>>>>>> handle such a code. I guess that your "this.appli" gets not=20 >>>>>>> evaluated correctly. >>>>>>> >>>>>>> Marc. >>>>>>> >>>>>>> Romain Thouvenin wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I have a main page with 4 frames, but the src attribute of one=20 >>>>>>>> of them >>>>>>>> is set with javascript. >>>>>>>> It seems that the script is not supported by HtmlUnit yet (the=20 >>>>>>>> code is : >>>>>>>> this.appli.location=3D"main/index.jsp"+this.location.search;), s= o=20 >>>>>>>> i'd like >>>>>>>> to know if it is possible to set the src in HtmlUnit. >>>>>>>> I tried : >>>>>>>> thePage.getFrameByName("theName").setEnclosedPage(anotherPage);=20 >>>>>>>> but it >>>>>>>> doesn't seem to work. When i looked for a form in thePage, it=20 >>>>>>>> was not found. >>>>>>>> >>>>>>>> Is there a solution to my problem ? >>>>>>>> >>>>>>>> Thanks for your help, >>>>>>>> Romain >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------- >>>>>>>> SF.Net email is Sponsored by the Better Software Conference & EX= PO >>>>>>>> September 19-22, 2005 * San Francisco, CA * Development=20 >>>>>>>> Lifecycle Practices >>>>>>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>>>>>> Testing & QA >>>>>>>> Security * Process Improvement & Measurement *=20 >>>>>>>> http://www.sqe.com/bsce5sf >>>>>>>> _______________________________________________ >>>>>>>> Htmlunit-user mailing list >>>>>>>> Htm...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> SF.Net email is Sponsored by the Better Software Conference & EXP= O >>>>>>> September 19-22, 2005 * San Francisco, CA * Development=20 >>>>>>> Lifecycle Practices >>>>>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>>>>> Testing & QA >>>>>>> Security * Process Improvement & Measurement *=20 >>>>>>> http://www.sqe.com/bsce5sf >>>>>>> _______________________________________________ >>>>>>> Htmlunit-user mailing list >>>>>>> Htm...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>>>> Practices >>>>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>>>> Testing & QA >>>>>> Security * Process Improvement & Measurement *=20 >>>>>> http://www.sqe.com/bsce5sf >>>>>> _______________________________________________ >>>>>> Htmlunit-user mailing list >>>>>> Htm...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>>> Practices >>>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>>> Testing & QA >>>>> Security * Process Improvement & Measurement *=20 >>>>> http://www.sqe.com/bsce5sf >>>>> _______________________________________________ >>>>> Htmlunit-user mailing list >>>>> Htm...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>> Testing & QA >>>> Security * Process Improvement & Measurement *=20 >>>> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Htmlunit-user mailing list >>>> Htm...@li... >>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>> Testing & QA >>> Security * Process Improvement & Measurement *=20 >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Marc G. <mgu...@ya...> - 2005-08-19 14:12:25
|
Which version of htmlunit do you use? I guess that it is related to http://sourceforge.net/tracker/index.php?func=detail&aid=1101525&group_id=47038&atid=448266 which has been fixed since version 1.6. Can you try with last CVS sources? Marc. Romain Thouvenin wrote: > The page is an index page with a very short code, I send it : > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" > "http://www.w3.org/TR/html4/frameset.dtd"> > <html lang=fr> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > > <script type="text/javascript" language="JavaScript"> > function connect(){ > this.appli.location="main/index.jsp"+this.location.search; > } > </script> > <title>Aguila</title> > <link rel="icon" type="image/png" href="pages/design/logos/icone.png" > > </head> > <frameset onload="javascript:connect();" rows="17,18,*,43" border="0" > > <frame src="index_header.htm" name="nav" scrolling="NO" > frameborder="0" marginwidth="0" marginheight="0" noresize > > <frame src="index_header.htm" name="menu" scrolling="NO" > frameborder="0" marginwidth="0" marginheight="0" noresize > > <frame src="" name="appli" scrolling="AUTO" frameborder="0" > marginwidth="0" marginheight="0" noresize > > > <frame src="index_footer.htm" name="bas" scrolling="NO" > frameborder="0" marginwidth="0" marginheight="0"> > </frameset> > </html> > > The error was message was exactly what I said (with a space missing > between index.jap and is). > Since the code is very short, it may be useless to add some alert(...). > I guess HtmlUnit create the frameset, with an empty "appli" frame, then > call connect(), and fails at the only line of the function. > > Since this.appli has no location, maybe HtmlUnit cannot append > "main/index.jsp" to nothing, and thus put a "about:" before ? > Hope it helps, > > Romain > > Marc Guillemot a écrit : > >> I try to understand why it leads to this mis-interpretation. Is the >> previous location of this.appli "about:blank"? >> >> Have you the possibility to add some alert(...) in the html code to >> understand what htmlunit is doing and at which point it fails? >> >> Marc. >> >> Romain Thouvenin wrote: >> >>> Nothing, you're right. But a "normal" brower is not expected to >>> transform the "location=..." into "about:...", is it ? >>> Firefox and IE simply add the ... to the current url. >>> >>> Romain >>> >>> Marc Guillemot a écrit : >>> >>>> and what should a "normal" browser answer for "about:main/index.jsp"? >>>> >>>> Marc. >>>> >>>> Romain Thouvenin wrote: >>>> >>>>> Well, I didn't try to identify what was the problem in the js since >>>>> the message of the exception reported said : >>>>> "about:main/index.jsp is not supported, only about:blank is >>>>> supported" (or something like that). >>>>> So I thought there is nothing to do except from waiting it is >>>>> supported... >>>>> Is the script wrong ? >>>>> >>>>> Your solution is a good idea, I may use it. Thanks. >>>>> >>>>> Romain >>>>> >>>>> Marc Guillemot a écrit : >>>>> >>>>>> As a workaround you can probably use >>>>>> webClient.setCurrentWindow(thePage.getFrameByName("theName")); >>>>>> webClient.getPage(yourNewUrl); >>>>>> >>>>>> Nevertheless you should take the time to identify why htmlunit >>>>>> can't execute your js. Normally htmlunit should be able to handle >>>>>> such a code. I guess that your "this.appli" gets not evaluated >>>>>> correctly. >>>>>> >>>>>> Marc. >>>>>> >>>>>> Romain Thouvenin wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I have a main page with 4 frames, but the src attribute of one of >>>>>>> them >>>>>>> is set with javascript. >>>>>>> It seems that the script is not supported by HtmlUnit yet (the >>>>>>> code is : >>>>>>> this.appli.location="main/index.jsp"+this.location.search;), so >>>>>>> i'd like >>>>>>> to know if it is possible to set the src in HtmlUnit. >>>>>>> I tried : >>>>>>> thePage.getFrameByName("theName").setEnclosedPage(anotherPage); >>>>>>> but it >>>>>>> doesn't seem to work. When i looked for a form in thePage, it was >>>>>>> not found. >>>>>>> >>>>>>> Is there a solution to my problem ? >>>>>>> >>>>>>> Thanks for your help, >>>>>>> Romain >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>>>>> Practices >>>>>>> Agile & Plan-Driven Development * Managing Projects & Teams * >>>>>>> Testing & QA >>>>>>> Security * Process Improvement & Measurement * >>>>>>> http://www.sqe.com/bsce5sf >>>>>>> _______________________________________________ >>>>>>> Htmlunit-user mailing list >>>>>>> Htm...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>>>> Practices >>>>>> Agile & Plan-Driven Development * Managing Projects & Teams * >>>>>> Testing & QA >>>>>> Security * Process Improvement & Measurement * >>>>>> http://www.sqe.com/bsce5sf >>>>>> _______________________________________________ >>>>>> Htmlunit-user mailing list >>>>>> Htm...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>>> Practices >>>>> Agile & Plan-Driven Development * Managing Projects & Teams * >>>>> Testing & QA >>>>> Security * Process Improvement & Measurement * >>>>> http://www.sqe.com/bsce5sf >>>>> _______________________________________________ >>>>> Htmlunit-user mailing list >>>>> Htm...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>> >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams * >>>> Testing & QA >>>> Security * Process Improvement & Measurement * >>>> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Htmlunit-user mailing list >>>> Htm...@li... >>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>> >>>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >>> & QA >>> Security * Process Improvement & Measurement * >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Anzinger, S. <SAn...@th...> - 2005-08-19 14:09:12
|
> -----Original Message----- > From: htm...@li...=20 > [mailto:htm...@li...] On Behalf=20 > Of Romain Thouvenin > Sent: Friday, August 19, 2005 4:02 PM > To: htm...@li... > Subject: Re: [Htmlunit-user] modifying frames >=20 >=20 > The page is an index page with a very short code, I send it : >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" [...] I must excuse, this is another problem than mine ... Sorry STefan |
From: Romain T. <rth...@sf...> - 2005-08-19 14:02:16
|
The page is an index page with a very short code, I send it : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3= .org/TR/html4/frameset.dtd"> <html lang=3Dfr> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-885= 9-1" > <script type=3D"text/javascript" language=3D"JavaScript"> function connect(){ this.appli.location=3D"main/index.jsp"+this.location.search; } </script> <title>Aguila</title> <link rel=3D"icon" type=3D"image/png" href=3D"pages/design/logos/icone.pn= g" > </head> <frameset onload=3D"javascript:connect();" rows=3D"17,18,*,43" border=3D"= 0" > <frame src=3D"index_header.htm" name=3D"nav" scrolling=3D"NO" frameborde= r=3D"0" marginwidth=3D"0" marginheight=3D"0" noresize > <frame src=3D"index_header.htm" name=3D"menu" scrolling=3D"NO" framebord= er=3D"0" marginwidth=3D"0" marginheight=3D"0" noresize > <frame src=3D"" name=3D"appli" scrolling=3D"AUTO" frameborder=3D"0" marg= inwidth=3D"0" marginheight=3D"0" noresize > <frame src=3D"index_footer.htm" name=3D"bas" scrolling=3D"NO" frameborde= r=3D"0" marginwidth=3D"0" marginheight=3D"0"> </frameset> </html> The error was message was exactly what I said (with a space missing=20 between index.jap and is). Since the code is very short, it may be useless to add some alert(...).=20 I guess HtmlUnit create the frameset, with an empty "appli" frame, then=20 call connect(), and fails at the only line of the function. Since this.appli has no location, maybe HtmlUnit cannot append=20 "main/index.jsp" to nothing, and thus put a "about:" before ? Hope it helps, Romain Marc Guillemot a =E9crit : > I try to understand why it leads to this mis-interpretation. Is the=20 > previous location of this.appli "about:blank"? > > Have you the possibility to add some alert(...) in the html code to=20 > understand what htmlunit is doing and at which point it fails? > > Marc. > > Romain Thouvenin wrote: > >> Nothing, you're right. But a "normal" brower is not expected to=20 >> transform the "location=3D..." into "about:...", is it ? >> Firefox and IE simply add the ... to the current url. >> >> Romain >> >> Marc Guillemot a =E9crit : >> >>> and what should a "normal" browser answer for "about:main/index.jsp"? >>> >>> Marc. >>> >>> Romain Thouvenin wrote: >>> >>>> Well, I didn't try to identify what was the problem in the js since=20 >>>> the message of the exception reported said : >>>> "about:main/index.jsp is not supported, only about:blank is=20 >>>> supported" (or something like that). >>>> So I thought there is nothing to do except from waiting it is=20 >>>> supported... >>>> Is the script wrong ? >>>> >>>> Your solution is a good idea, I may use it. Thanks. >>>> >>>> Romain >>>> >>>> Marc Guillemot a =E9crit : >>>> >>>>> As a workaround you can probably use >>>>> webClient.setCurrentWindow(thePage.getFrameByName("theName")); >>>>> webClient.getPage(yourNewUrl); >>>>> >>>>> Nevertheless you should take the time to identify why htmlunit=20 >>>>> can't execute your js. Normally htmlunit should be able to handle=20 >>>>> such a code. I guess that your "this.appli" gets not evaluated=20 >>>>> correctly. >>>>> >>>>> Marc. >>>>> >>>>> Romain Thouvenin wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I have a main page with 4 frames, but the src attribute of one of=20 >>>>>> them >>>>>> is set with javascript. >>>>>> It seems that the script is not supported by HtmlUnit yet (the=20 >>>>>> code is : >>>>>> this.appli.location=3D"main/index.jsp"+this.location.search;), so=20 >>>>>> i'd like >>>>>> to know if it is possible to set the src in HtmlUnit. >>>>>> I tried : >>>>>> thePage.getFrameByName("theName").setEnclosedPage(anotherPage);=20 >>>>>> but it >>>>>> doesn't seem to work. When i looked for a form in thePage, it was=20 >>>>>> not found. >>>>>> >>>>>> Is there a solution to my problem ? >>>>>> >>>>>> Thanks for your help, >>>>>> Romain >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>>>> Practices >>>>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>>>> Testing & QA >>>>>> Security * Process Improvement & Measurement *=20 >>>>>> http://www.sqe.com/bsce5sf >>>>>> _______________________________________________ >>>>>> Htmlunit-user mailing list >>>>>> Htm...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>>> Practices >>>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>>> Testing & QA >>>>> Security * Process Improvement & Measurement *=20 >>>>> http://www.sqe.com/bsce5sf >>>>> _______________________________________________ >>>>> Htmlunit-user mailing list >>>>> Htm...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>> Testing & QA >>>> Security * Process Improvement & Measurement *=20 >>>> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Htmlunit-user mailing list >>>> Htm...@li... >>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>> >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>> Testing & QA >>> Security * Process Improvement & Measurement *=20 >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Marc G. <mgu...@ya...> - 2005-08-19 13:45:03
|
I try to understand why it leads to this mis-interpretation. Is the previous location of this.appli "about:blank"? Have you the possibility to add some alert(...) in the html code to understand what htmlunit is doing and at which point it fails? Marc. Romain Thouvenin wrote: > Nothing, you're right. But a "normal" brower is not expected to > transform the "location=..." into "about:...", is it ? > Firefox and IE simply add the ... to the current url. > > Romain > > Marc Guillemot a écrit : > >> and what should a "normal" browser answer for "about:main/index.jsp"? >> >> Marc. >> >> Romain Thouvenin wrote: >> >>> Well, I didn't try to identify what was the problem in the js since >>> the message of the exception reported said : >>> "about:main/index.jsp is not supported, only about:blank is >>> supported" (or something like that). >>> So I thought there is nothing to do except from waiting it is >>> supported... >>> Is the script wrong ? >>> >>> Your solution is a good idea, I may use it. Thanks. >>> >>> Romain >>> >>> Marc Guillemot a écrit : >>> >>>> As a workaround you can probably use >>>> webClient.setCurrentWindow(thePage.getFrameByName("theName")); >>>> webClient.getPage(yourNewUrl); >>>> >>>> Nevertheless you should take the time to identify why htmlunit can't >>>> execute your js. Normally htmlunit should be able to handle such a >>>> code. I guess that your "this.appli" gets not evaluated correctly. >>>> >>>> Marc. >>>> >>>> Romain Thouvenin wrote: >>>> >>>>> Hi, >>>>> >>>>> I have a main page with 4 frames, but the src attribute of one of them >>>>> is set with javascript. >>>>> It seems that the script is not supported by HtmlUnit yet (the code >>>>> is : >>>>> this.appli.location="main/index.jsp"+this.location.search;), so i'd >>>>> like >>>>> to know if it is possible to set the src in HtmlUnit. >>>>> I tried : >>>>> thePage.getFrameByName("theName").setEnclosedPage(anotherPage); but it >>>>> doesn't seem to work. When i looked for a form in thePage, it was >>>>> not found. >>>>> >>>>> Is there a solution to my problem ? >>>>> >>>>> Thanks for your help, >>>>> Romain >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>>> Practices >>>>> Agile & Plan-Driven Development * Managing Projects & Teams * >>>>> Testing & QA >>>>> Security * Process Improvement & Measurement * >>>>> http://www.sqe.com/bsce5sf >>>>> _______________________________________________ >>>>> Htmlunit-user mailing list >>>>> Htm...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams * >>>> Testing & QA >>>> Security * Process Improvement & Measurement * >>>> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Htmlunit-user mailing list >>>> Htm...@li... >>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>> >>>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >>> & QA >>> Security * Process Improvement & Measurement * >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Romain T. <rth...@sf...> - 2005-08-19 13:39:49
|
Nothing, you're right. But a "normal" brower is not expected to=20 transform the "location=3D..." into "about:...", is it ? Firefox and IE simply add the ... to the current url. Romain Marc Guillemot a =E9crit : > and what should a "normal" browser answer for "about:main/index.jsp"? > > Marc. > > Romain Thouvenin wrote: > >> Well, I didn't try to identify what was the problem in the js since=20 >> the message of the exception reported said : >> "about:main/index.jsp is not supported, only about:blank is=20 >> supported" (or something like that). >> So I thought there is nothing to do except from waiting it is=20 >> supported... >> Is the script wrong ? >> >> Your solution is a good idea, I may use it. Thanks. >> >> Romain >> >> Marc Guillemot a =E9crit : >> >>> As a workaround you can probably use >>> webClient.setCurrentWindow(thePage.getFrameByName("theName")); >>> webClient.getPage(yourNewUrl); >>> >>> Nevertheless you should take the time to identify why htmlunit can't=20 >>> execute your js. Normally htmlunit should be able to handle such a=20 >>> code. I guess that your "this.appli" gets not evaluated correctly. >>> >>> Marc. >>> >>> Romain Thouvenin wrote: >>> >>>> Hi, >>>> >>>> I have a main page with 4 frames, but the src attribute of one of th= em >>>> is set with javascript. >>>> It seems that the script is not supported by HtmlUnit yet (the code=20 >>>> is : >>>> this.appli.location=3D"main/index.jsp"+this.location.search;), so i'= d=20 >>>> like >>>> to know if it is possible to set the src in HtmlUnit. >>>> I tried : >>>> thePage.getFrameByName("theName").setEnclosedPage(anotherPage); but = it >>>> doesn't seem to work. When i looked for a form in thePage, it was=20 >>>> not found. >>>> >>>> Is there a solution to my problem ? >>>> >>>> Thanks for your help, >>>> Romain >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>>> Testing & QA >>>> Security * Process Improvement & Measurement *=20 >>>> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Htmlunit-user mailing list >>>> Htm...@li... >>>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams *=20 >>> Testing & QA >>> Security * Process Improvement & Measurement *=20 >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >>> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Anzinger, S. <SAn...@th...> - 2005-08-19 13:23:12
|
> -----Original Message----- > From: htm...@li...=20 > [mailto:htm...@li...] On Behalf=20 > Of Marc Guillemot > Sent: Friday, August 19, 2005 3:07 PM > To: htm...@li... > Subject: Re: [Htmlunit-user] modifying frames >=20 >=20 > As a workaround you can probably use=20 > webClient.setCurrentWindow(thePage.getFrameByName("theName")); > webClient.getPage(yourNewUrl); >=20 > Nevertheless you should take the time to identify why=20 > htmlunit can't execute your js. Normally htmlunit should be able=20 > to handle such a code. I guess that your "this.appli" gets=20 > not evaluated correctly. I guess, that the problem is identical to my problem (see other mail from me. (Frames, and navigating with javascript to pages which contain frames) I would know the page where htmlunit navigate to ... Greets Stefan |
From: Marc G. <mgu...@ya...> - 2005-08-19 13:22:55
|
and what should a "normal" browser answer for "about:main/index.jsp"? Marc. Romain Thouvenin wrote: > Well, I didn't try to identify what was the problem in the js since the > message of the exception reported said : > "about:main/index.jsp is not supported, only about:blank is supported" > (or something like that). > So I thought there is nothing to do except from waiting it is supported... > Is the script wrong ? > > Your solution is a good idea, I may use it. Thanks. > > Romain > > Marc Guillemot a écrit : > >> As a workaround you can probably use >> webClient.setCurrentWindow(thePage.getFrameByName("theName")); >> webClient.getPage(yourNewUrl); >> >> Nevertheless you should take the time to identify why htmlunit can't >> execute your js. Normally htmlunit should be able to handle such a >> code. I guess that your "this.appli" gets not evaluated correctly. >> >> Marc. >> >> Romain Thouvenin wrote: >> >>> Hi, >>> >>> I have a main page with 4 frames, but the src attribute of one of them >>> is set with javascript. >>> It seems that the script is not supported by HtmlUnit yet (the code is : >>> this.appli.location="main/index.jsp"+this.location.search;), so i'd like >>> to know if it is possible to set the src in HtmlUnit. >>> I tried : >>> thePage.getFrameByName("theName").setEnclosedPage(anotherPage); but it >>> doesn't seem to work. When i looked for a form in thePage, it was not >>> found. >>> >>> Is there a solution to my problem ? >>> >>> Thanks for your help, >>> Romain >>> >>> >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >>> & QA >>> Security * Process Improvement & Measurement * >>> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Htmlunit-user mailing list >>> Htm...@li... >>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing >> & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Romain T. <rth...@sf...> - 2005-08-19 13:19:59
|
Well, I didn't try to identify what was the problem in the js since the=20 message of the exception reported said : "about:main/index.jsp is not supported, only about:blank is supported"=20 (or something like that). So I thought there is nothing to do except from waiting it is supported..= . Is the script wrong ? Your solution is a good idea, I may use it. Thanks. Romain Marc Guillemot a =E9crit : > As a workaround you can probably use > webClient.setCurrentWindow(thePage.getFrameByName("theName")); > webClient.getPage(yourNewUrl); > > Nevertheless you should take the time to identify why htmlunit can't=20 > execute your js. Normally htmlunit should be able to handle such a=20 > code. I guess that your "this.appli" gets not evaluated correctly. > > Marc. > > Romain Thouvenin wrote: > >> Hi, >> >> I have a main page with 4 frames, but the src attribute of one of them >> is set with javascript. >> It seems that the script is not supported by HtmlUnit yet (the code is= : >> this.appli.location=3D"main/index.jsp"+this.location.search;), so i'd = like >> to know if it is possible to set the src in HtmlUnit. >> I tried : >> thePage.getFrameByName("theName").setEnclosedPage(anotherPage); but it >> doesn't seem to work. When i looked for a form in thePage, it was not=20 >> found. >> >> Is there a solution to my problem ? >> >> Thanks for your help, >> Romain >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 >> & QA >> Security * Process Improvement & Measurement *=20 >> http://www.sqe.com/bsce5sf >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle=20 > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing=20 > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Marc G. <mgu...@ya...> - 2005-08-19 13:03:24
|
As a workaround you can probably use webClient.setCurrentWindow(thePage.getFrameByName("theName")); webClient.getPage(yourNewUrl); Nevertheless you should take the time to identify why htmlunit can't execute your js. Normally htmlunit should be able to handle such a code. I guess that your "this.appli" gets not evaluated correctly. Marc. Romain Thouvenin wrote: > Hi, > > I have a main page with 4 frames, but the src attribute of one of them > is set with javascript. > It seems that the script is not supported by HtmlUnit yet (the code is : > this.appli.location="main/index.jsp"+this.location.search;), so i'd like > to know if it is possible to set the src in HtmlUnit. > I tried : > thePage.getFrameByName("theName").setEnclosedPage(anotherPage); but it > doesn't seem to work. When i looked for a form in thePage, it was not > found. > > Is there a solution to my problem ? > > Thanks for your help, > Romain > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Romain T. <rth...@sf...> - 2005-08-19 12:54:35
|
Hi, I have a main page with 4 frames, but the src attribute of one of them is set with javascript. It seems that the script is not supported by HtmlUnit yet (the code is : this.appli.location="main/index.jsp"+this.location.search;), so i'd like to know if it is possible to set the src in HtmlUnit. I tried : thePage.getFrameByName("theName").setEnclosedPage(anotherPage); but it doesn't seem to work. When i looked for a form in thePage, it was not found. Is there a solution to my problem ? Thanks for your help, Romain |
From: SALL O. <osa...@ya...> - 2005-08-19 12:36:28
|
Sorry, I was testing the web page of altavista http://www.altavista.com/ on subpitting the form but and I think the it's not well-formed. --- Marc Guillemot <mgu...@ya...> a écrit : > your html is not valid (no body, then content inside > head, ...) therefore it can't currently be correctly > understood by > htmlunit. > > Marc. > > SALL Ousmane wrote: > > Hi, > > Sorry, but i think i have found a possible bug > with > > getEnclosingFormOrDie, I try to click on an > element > > which is really in a form but I got this message : > > > testInputs(TestClick)java.lang.IllegalStateException: > > Element is not comtained within a form: > > HtmlSubmitInput[<input value="FIND" type="submit" > > class="btn" id="digiId79">] > > at > > > com.gargoylesoftware.htmlunit.html.HtmlElement.getEnclosingFormOrDie(HtmlElement.java:327) > > at > > > com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:77) > > at > > > com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120) > > at TestClick.testInputs(TestClick.java:22) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at TestClick.main(TestClick.java:26) > > > > Thanks for help > > The source test is : > > public class TestClick extends TestCase { > > public void testInputs() throws Exception{ > > String > > > path=racinePath+"/Tests/data/htmlFiles/original.html"; > > > > > > URL url = new URL("file://"+path); > > WebClient webClient = new > > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > > HtmlPage page = > (HtmlPage)webClient.getPage(url); > > HtmlElement htmlElement = > > page.getHtmlElementById("digiId79"); > > > > String str = ((ClickableElement) > > > htmlElement).click().getWebResponse().getUrl().toExternalForm(); > > > > } > > > > public static void main (String[] args) { > > junit.textui.TestRunner.run(new > > TestSuite(TestClick.class)); > > } > > } > > and the "Original.html" > > <HTML id="digiId0"> > > <HEAD id="digiId1"> > > <TR id="digiId69"> > > <TD align="center" id="digiId70"> > > <TABLE border="0" cellspacing="0" > cellpadding="2" > > id="digiId71"> > > <TR id="digiId72"> > > <TD width="150" id="digiId73"> > > <FORM action="http://yahoo.com/" > name="mfrm" > > id="digiId74"> > > <INPUT type="hidden" name="itag" > value="ody" > > id="digiId75"> > > </TD> > > <TD align="center" id="digiId76"> > > <INPUT type="text" name="q" size="20" > > maxlength="800" value="" style="width:319px" > > id="digiId77"> > > </TD> > > <TD nowrap="" id="digiId78"> > > <INPUT type="submit" value="FIND" > > class="btn" id="digiId79"> > > </TD> > > </FORM> > > </TABLE> > > </TD> > > </TR> > > </HEAD> > > </BODY> > > </HTML> > > > > > > > > > > > > > > > ___________________________________________________________________________ > > > Appel audio GRATUIT partout dans le monde avec le > nouveau Yahoo! Messenger > > Téléchargez cette version sur > http://fr.messenger.yahoo.com > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software > Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing > Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com |
From: Marc G. <mgu...@ya...> - 2005-08-19 10:23:43
|
your html is not valid (no body, then content inside head, ...) therefore it can't currently be correctly understood by htmlunit. Marc. SALL Ousmane wrote: > Hi, > Sorry, but i think i have found a possible bug with > getEnclosingFormOrDie, I try to click on an element > which is really in a form but I got this message : > testInputs(TestClick)java.lang.IllegalStateException: > Element is not comtained within a form: > HtmlSubmitInput[<input value="FIND" type="submit" > class="btn" id="digiId79">] > at > com.gargoylesoftware.htmlunit.html.HtmlElement.getEnclosingFormOrDie(HtmlElement.java:327) > at > com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:77) > at > com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120) > at TestClick.testInputs(TestClick.java:22) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at TestClick.main(TestClick.java:26) > > Thanks for help > The source test is : > public class TestClick extends TestCase { > public void testInputs() throws Exception{ > String > path=racinePath+"/Tests/data/htmlFiles/original.html"; > > > URL url = new URL("file://"+path); > WebClient webClient = new > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > HtmlPage page = (HtmlPage)webClient.getPage(url); > HtmlElement htmlElement = > page.getHtmlElementById("digiId79"); > > String str = ((ClickableElement) > htmlElement).click().getWebResponse().getUrl().toExternalForm(); > > } > > public static void main (String[] args) { > junit.textui.TestRunner.run(new > TestSuite(TestClick.class)); > } > } > and the "Original.html" > <HTML id="digiId0"> > <HEAD id="digiId1"> > <TR id="digiId69"> > <TD align="center" id="digiId70"> > <TABLE border="0" cellspacing="0" cellpadding="2" > id="digiId71"> > <TR id="digiId72"> > <TD width="150" id="digiId73"> > <FORM action="http://yahoo.com/" name="mfrm" > id="digiId74"> > <INPUT type="hidden" name="itag" value="ody" > id="digiId75"> > </TD> > <TD align="center" id="digiId76"> > <INPUT type="text" name="q" size="20" > maxlength="800" value="" style="width:319px" > id="digiId77"> > </TD> > <TD nowrap="" id="digiId78"> > <INPUT type="submit" value="FIND" > class="btn" id="digiId79"> > </TD> > </FORM> > </TABLE> > </TD> > </TR> > </HEAD> > </BODY> > </HTML> > > > > > > > ___________________________________________________________________________ > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger > Téléchargez cette version sur http://fr.messenger.yahoo.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: SALL O. <osa...@ya...> - 2005-08-19 10:16:57
|
Hi, Sorry, but i think i have found a possible bug with getEnclosingFormOrDie, I try to click on an element which is really in a form but I got this message : testInputs(TestClick)java.lang.IllegalStateException: Element is not comtained within a form: HtmlSubmitInput[<input value="FIND" type="submit" class="btn" id="digiId79">] at com.gargoylesoftware.htmlunit.html.HtmlElement.getEnclosingFormOrDie(HtmlElement.java:327) at com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:77) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120) at TestClick.testInputs(TestClick.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at TestClick.main(TestClick.java:26) Thanks for help The source test is : public class TestClick extends TestCase { public void testInputs() throws Exception{ String path=racinePath+"/Tests/data/htmlFiles/original.html"; URL url = new URL("file://"+path); WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); HtmlPage page = (HtmlPage)webClient.getPage(url); HtmlElement htmlElement = page.getHtmlElementById("digiId79"); String str = ((ClickableElement) htmlElement).click().getWebResponse().getUrl().toExternalForm(); } public static void main (String[] args) { junit.textui.TestRunner.run(new TestSuite(TestClick.class)); } } and the "Original.html" <HTML id="digiId0"> <HEAD id="digiId1"> <TR id="digiId69"> <TD align="center" id="digiId70"> <TABLE border="0" cellspacing="0" cellpadding="2" id="digiId71"> <TR id="digiId72"> <TD width="150" id="digiId73"> <FORM action="http://yahoo.com/" name="mfrm" id="digiId74"> <INPUT type="hidden" name="itag" value="ody" id="digiId75"> </TD> <TD align="center" id="digiId76"> <INPUT type="text" name="q" size="20" maxlength="800" value="" style="width:319px" id="digiId77"> </TD> <TD nowrap="" id="digiId78"> <INPUT type="submit" value="FIND" class="btn" id="digiId79"> </TD> </FORM> </TABLE> </TD> </TR> </HEAD> </BODY> </HTML> ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com |