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: Gil H. <gi...@te...> - 2005-02-08 19:49:21
|
Hi, When I try and run a simple test program behind a corporate firewall I get: java.net.UnknownHostException: http://webcache at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:505) 'webcache' is the proxy and I've set it in the code as: final WebClient webClient = new WebClient(BrowserVersion.MOZILLA_1_0, "http://webcache", 8080); Is there any reason why it would not be found? If I ping from the it seems to be found ... Any help would be appreciated. Thanks, Gil |
From: Hans-Joachim M. <Han...@in...> - 2005-02-07 18:10:29
|
Hello, I wrote: > we try to do a > > <script language="JavaScript"> > this.name="dummy"; > </script> > > directly in an html page and get an > htmlunit exception with javascript > complaining that the property "name" > of the object "...javascript.host.Window@xxxxx" > is not writeable. > > But this is working in all browsers we use. > > Is this a bug that the top level window > has no writeable name property? > sorry but we had an old version of htmlunit in a particular test installation. Now everything works fine. Thanks, Jochen |
From: Hans-Joachim M. <Han...@in...> - 2005-02-07 17:54:48
|
Hello, we try to do a <script language="JavaScript"> this.name="dummy"; </script> directly in an html page and get an htmlunit exception with javascript complaining that the property "name" of the object "...javascript.host.Window@xxxxx" is not writeable. But this is working in all browsers we use. Is this a bug that the top level window has no writeable name property? Thanks, Jochen -- Hans-Joachim Matheus mailto:Han...@in... |
From: Brad C. <yo...@br...> - 2005-02-06 05:22:01
|
It shouldn't require an account. Signing in is just a way to make your changes show your name. I'm not exactly sure what the IMAP error is all about but I only see it when I don't use a valid username (usernames must be a WikiWord). I don't even think it'll let you have a password right now. It's in no way tied to sourceforge. The email error you get if you try to add an address to your account is because sourceforge doesn't allow outbound connections from the web servers: no emailing :( Easiest way to prevent wiki vandals is by watching the RecentEdits page (add it to your RSS reader if you use one). Then just revert their changes and ban their IP. Brad C --- "David D.Kilzer" <ddk...@ki...> wrote: > Are the PhpWiki accounts not linked to SourceForge accounts? Is there > no way to create your own account? (I see imap errors on the page when > I try to create an account.) > > With editing open to anyone, how are you going to prevent > spam-vertising and/or random graffiti? > > Dave > > > On Jan 27, 2005, at 12:37 PM, Brad Clarke wrote: > > > PhpWiki is setup and using mysql, go nuts! > > > > http://htmlunit.sourceforge.net/phpwiki/ > > > > Brad C > > |
From: David D.K. <ddk...@ki...> - 2005-02-06 04:59:05
|
I just created a new page on the wiki about a small testing framework that evolved on the project that I worked on for the past year. I hope it will help others to implement their tests using HtmlUnit. http://htmlunit.sourceforge.net/phpwiki/index.php/PageWrapperFactory Dave |
From: David D.K. <ddk...@ki...> - 2005-02-05 17:16:02
|
Are the PhpWiki accounts not linked to SourceForge accounts? Is there no way to create your own account? (I see imap errors on the page when I try to create an account.) With editing open to anyone, how are you going to prevent spam-vertising and/or random graffiti? Dave On Jan 27, 2005, at 12:37 PM, Brad Clarke wrote: > PhpWiki is setup and using mysql, go nuts! > > http://htmlunit.sourceforge.net/phpwiki/ > > Brad C |
From: David D.K. <ddk...@ki...> - 2005-02-05 17:10:38
|
I strongly recommend adding unique "id" attributes to the HTML output by the JavaScript, then finding the HTML DOM objects using the IDs with the APIs provided by Htmlunit. This is much easier (and less error-prone) than relying on the structure of the document to find the tags you're looking for. And if you need to verify text on a page, use SPAN tags with a unique "id" attribute, too. Dave On Feb 4, 2005, at 2:44 AM, Marc Guillemot wrote: > Hi Jun, > > htmlunit can handle html code dynamically generated with > document.write... to a certain extent (for example, document.write in > the head currently make problems). > In your example, if it works correctly, you should find the <script> > elements in the td, as well as the generated content. > What errors do you become? How do you test that the table cell only > contains the <script....>? > > Marc. > > Jun Ma wrote: >> Hi, there >> I am a new comer for HtmlUnit. The Web application I am testing >> employs quite a lot Javascript code. It uses a Javascript code to >> generate a tool bar. The HTML code looks like the attached one. >> The page has a table. This table has two rows. In the first row, >> there are two HTML links. In the second row, there is tool bar. The >> toolbar.Write() method dynamically generates a piece of HTML code, >> like: <img src=..... onClick="......"... />. This code represents a >> button on this tool bar. >> My question is that how I use HTMLUnit to access this javascript >> generated HTML object. >> Via HTMLUnit, I can get the objects for the HTML Anchors defined >> in the first row of this table. However, I can not get the Javascript >> generated HTML objects. When I got the object of that Table cell, it >> only contains "<script language="javascript"> >> toolbarContainer.begin(); toolbar.write(); toolbarContainer.end(); >> </script>", not the <img ....> objects I am expecting. >> Do you know how to use HTMLUnit to manipulate the HTML objects >> dynamically generated by Javascript? >> Thanks a lot. >> Jun >> [HTML removed] > |
From: Marc G. <mgu...@ya...> - 2005-02-04 08:43:32
|
Hi Jun, htmlunit can handle html code dynamically generated with document.write... to a certain extent (for example, document.write in the head currently make problems). In your example, if it works correctly, you should find the <script> elements in the td, as well as the generated content. What errors do you become? How do you test that the table cell only contains the <script....>? Marc. Jun Ma wrote: > > > Hi, there > > I am a new comer for HtmlUnit. The Web application I am testing > employs quite a lot Javascript code. It uses a Javascript code to > generate a tool bar. The HTML code looks like the attached one. > > The page has a table. This table has two rows. In the first row, > there are two HTML links. In the second row, there is tool bar. The > toolbar.Write() method dynamically generates a piece of HTML code, like: > <img src=..... onClick="......"... />. This code represents a button on > this tool bar. > > My question is that how I use HTMLUnit to access this javascript > generated HTML object. > > Via HTMLUnit, I can get the objects for the HTML Anchors defined in > the first row of this table. However, I can not get the Javascript > generated HTML objects. When I got the object of that Table cell, it > only contains "<script language="javascript"> > toolbarContainer.begin(); toolbar.write(); toolbarContainer.end(); > </script>", not the <img ....> objects I am expecting. > > Do you know how to use HTMLUnit to manipulate the HTML objects > dynamically generated by Javascript? > > Thanks a lot. > > > > Jun > > > > <table class="list" width="100%" border="0" cellspacing="0" > cellpadding="0" id="navHeadTable"> > > <tr class="panelTitlebar" style="background-image: > url('<html:rewrite page='<%= schema.getUrl(application, > "img.panel.titlebar") %>'/>');"> > > <td align="left"> > > <table cellpadding="0" cellspacing="0"> > > <tr> > > <td > class="panelText"><img id="navTitleImage" src='<html:rewrite page='<%= > schema.getUrl(application, "img.folder.regular") %>'/>' > > > align="middle" hspace="3" vspace="0" border="0" /></td> > > <td > id="navTitle" align="left" class="panelText" nowrap><fmt:message > key='main.nav.folders.title'/></td> > > </tr> > > </table> > > </td> > > <td align="right"> > > <table cellpadding="0" cellspacing="0"> > > <tr> > > <td class="panelText" > nowrap> > > <a > href="javascript:onBtnHideNavClick();" class="panelText" > title='<fmt:message key="main.nav.hide.tooltip"/>' > > > onMouseOver="panelButtonHover('navHideImg', collapseImgOver);" > onMouseOut="panelButtonHover('navHideImg', collapseImg);"> > > > <fmt:message key="main.panel.collapse"/> > > </a> > > </td><td> > > <a > href="javascript:onBtnHideNavClick();" class="panelText" > title='<fmt:message key="main.nav.hide.tooltip"/>' > > > onMouseOver="panelButtonHover('navHideImg', collapseImgOver);" > onMouseOut="panelButtonHover('navHideImg', collapseImg);"> > > > <img id="navHideImg" align="middle" alt='<fmt:message > key="main.nav.hide.tooltip"/>' border='0' > > > src='<%= request.getContextPath() + schema.getUrl(application, > "img.panel.arrowleft") %>'/> > > </a> > > </td> > > <td width="3"></td> > > </tr> > > </table> > > </td> > > </tr> > > <tr> > > <td colspan="2" class="panelToolbar"> > > <script language="javascript"> > > toolbarContainer.begin(); > > toolbar.write(); > > toolbarContainer.end(); > > </script> > > </td> > > </tr> > > </table> > > > |
From: Jun Ma <Ju...@bu...> - 2005-02-04 02:20:41
|
Hi, there I am a new comer for HtmlUnit. The Web application I am testing employs quite a lot Javascript code. It uses a Javascript code to generate a tool bar. The HTML code looks like the attached one. The page has a table. This table has two rows. In the first row, there are two HTML links. In the second row, there is tool bar. The toolbar.Write() method dynamically generates a piece of HTML code, like: <img src=..... onClick="......"... />. This code represents a button on this tool bar. My question is that how I use HTMLUnit to access this javascript generated HTML object. Via HTMLUnit, I can get the objects for the HTML Anchors defined in the first row of this table. However, I can not get the Javascript generated HTML objects. When I got the object of that Table cell, it only contains "<script language="javascript"> toolbarContainer.begin(); toolbar.write(); toolbarContainer.end(); </script>", not the <img ....> objects I am expecting. Do you know how to use HTMLUnit to manipulate the HTML objects dynamically generated by Javascript? Thanks a lot. Jun <table class="list" width="100%" border="0" cellspacing="0" cellpadding="0" id="navHeadTable"> <tr class="panelTitlebar" style="background-image: url('<html:rewrite page='<%= schema.getUrl(application, "img.panel.titlebar") %>'/>');"> <td align="left"> <table cellpadding="0" cellspacing="0"> <tr> <td class="panelText"><img id="navTitleImage" src='<html:rewrite page='<%= schema.getUrl(application, "img.folder.regular") %>'/>' align="middle" hspace="3" vspace="0" border="0" /></td> <td id="navTitle" align="left" class="panelText" nowrap><fmt:message key='main.nav.folders.title'/></td> </tr> </table> </td> <td align="right"> <table cellpadding="0" cellspacing="0"> <tr> <td class="panelText" nowrap> <a href="javascript:onBtnHideNavClick();" class="panelText" title='<fmt:message key="main.nav.hide.tooltip"/>' onMouseOver="panelButtonHover('navHideImg', collapseImgOver);" onMouseOut="panelButtonHover('navHideImg', collapseImg);"> <fmt:message key="main.panel.collapse"/> </a> </td><td> <a href="javascript:onBtnHideNavClick();" class="panelText" title='<fmt:message key="main.nav.hide.tooltip"/>' onMouseOver="panelButtonHover('navHideImg', collapseImgOver);" onMouseOut="panelButtonHover('navHideImg', collapseImg);"> <img id="navHideImg" align="middle" alt='<fmt:message key="main.nav.hide.tooltip"/>' border='0' src='<%= request.getContextPath() + schema.getUrl(application, "img.panel.arrowleft") %>'/> </a> </td> <td width="3"></td> </tr> </table> </td> </tr> <tr> <td colspan="2" class="panelToolbar"> <script language="javascript"> toolbarContainer.begin(); toolbar.write(); toolbarContainer.end(); </script> </td> </tr> </table> |
From: Gary L. <ch...@ya...> - 2005-02-03 03:18:19
|
thanks for the update. Very appreciated. gary --- Brad Clarke <yo...@br...> wrote: > > setTimeout support is quite new and a little hackish. A patch that > might help is in > the pipeline. ===== ------ It's 2004. Welcome to Amerika __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail |
From: Mike B. <mb...@Ga...> - 2005-02-02 12:30:17
|
Vinay Murthy wrote: >Basically, I am looking for an "event listener" that gets notified >whenever an alert shows up on a page. The "event listener" could then >delegate the handling of the event to an appropriate "event handler". > > That's what the AlertHandler interface is there for. CollectingAlertHandler is just one implementation but you could easily write your own. Look at WebClient.setAlertHandler(); -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Marc G. <mgu...@ya...> - 2005-02-02 08:11:08
|
Hi, Concerning ebay, it comes propably from a parsing problem. www.ebay.com page starts with something like <HTML XMLNS:IE> <head> <mainF1> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> and this <mainF1> (may vary, but allways such a stupid tag) causes the html parser (nekoHtml) to think that the <body> tag is missing just before it. Therefore all js definitions are not worked as they should. I've already mailed nekoHtml's author about that but I haven't become any answer. Marc. Ritesh Trivedi wrote: > Hi, > > I am trying out HTMLUnit and trying to do a simple connect to sites > such as www.yahoo.com or www.ebay.com. But I get the following error > when getting the page. > > My suspicion is that its because the .js function library which is > included has the variable defined. > > Any help will be appreciated. > > Ritesh > > ScriptException: enclosed exception was "ReferenceError: "ebay" is not > defined. (Embedded script #1)" > Script source code ebay.oDocument._getControl('poweredby')._exec('wr > iteSource','<a href="http://pages.ebay.com/ebay_IBM.html" onclick="ebayShowPopup > Window(this.href, \'Sponsor\', 285, 350); return false;"><img src="http://pics.e > baystatic.com/aw/pics/navbar/poweredByLogo_112x22.gif" border="0"></a>'); > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Marc G. <mgu...@ya...> - 2005-02-02 08:07:43
|
Ritesh Trivedi wrote: > Hi, > > I am trying out HTMLUnit and trying to do a simple connect to sites > such as www.yahoo.com or www.ebay.com. But I get the following error > when getting the page. > > My suspicion is that its because the .js function library which is > included has the variable defined. > > Any help will be appreciated. > > Ritesh > > ScriptException: enclosed exception was "ReferenceError: "ebay" is not > defined. (Embedded script #1)" > Script source code ebay.oDocument._getControl('poweredby')._exec('wr > iteSource','<a href="http://pages.ebay.com/ebay_IBM.html" onclick="ebayShowPopup > Window(this.href, \'Sponsor\', 285, 350); return false;"><img src="http://pics.e > baystatic.com/aw/pics/navbar/poweredByLogo_112x22.gif" border="0"></a>'); > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Vinay M. <vin...@gm...> - 2005-02-02 08:00:48
|
Hi, I am using HtmlUnit to fill up a page that pops up javascript alerts when certain buttons are clicked or when a textbox loses focus. I need to be able to capture these alerts and fetch the messages conveyed therein. Is there a way to check for these alerts in an asynchronous manner ? In the sense, is there anything else that I can do apart from : 1) designating an instance of "CollectingAlertHandler" to maintain a list of alerts that might show up on a page 2) and then, keep checking if the list of alerts in CollectingAlertHandler got populated everytime I enter a value on the site ? Basically, I am looking for an "event listener" that gets notified whenever an alert shows up on a page. The "event listener" could then delegate the handling of the event to an appropriate "event handler". Does HtmlUnit support this kind of a feature ? Does popping up of an alert qualify as a WebWindowEvent, so that I could use a handler implementing WebWindowListener ? Thanks and Best Regards Vinay Murthy |
From: David D.K. <ddk...@ki...> - 2005-02-02 04:08:25
|
Try setting a different browser string (e.g., one for Mozilla). The pages are probably using a syntax that only works in MSIE (which is the default browser string) and which isn't implemented in Htmlunit yet. The Google home page changes depending on the browser string used, and the MSIE version causes a JavaScript error with Htmlunit (last I checked). Dave On Feb 1, 2005, at 8:38 PM, Ritesh Trivedi wrote: > Hi, > > I am trying out HTMLUnit and trying to do a simple connect to sites > such as www.yahoo.com or www.ebay.com. But I get the following error > when getting the page. > > My suspicion is that its because the .js function library which is > included has the variable defined. > > Any help will be appreciated. > > Ritesh > > ScriptException: enclosed exception was "ReferenceError: "ebay" is not > defined. (Embedded script #1)" > Script source code ebay.oDocument._getControl('poweredby')._exec('wr > iteSource','<a href="http://pages.ebay.com/ebay_IBM.html" > onclick="ebayShowPopup > Window(this.href, \'Sponsor\', 285, 350); return false;"><img > src="http://pics.e > baystatic.com/aw/pics/navbar/poweredByLogo_112x22.gif" > border="0"></a>'); > |
From: Ritesh T. <rit...@gm...> - 2005-02-02 02:38:40
|
Hi, I am trying out HTMLUnit and trying to do a simple connect to sites such as www.yahoo.com or www.ebay.com. But I get the following error when getting the page. My suspicion is that its because the .js function library which is included has the variable defined. Any help will be appreciated. Ritesh ScriptException: enclosed exception was "ReferenceError: "ebay" is not defined. (Embedded script #1)" Script source code ebay.oDocument._getControl('poweredby')._exec('wr iteSource','<a href="http://pages.ebay.com/ebay_IBM.html" onclick="ebayShowPopup Window(this.href, \'Sponsor\', 285, 350); return false;"><img src="http://pics.e baystatic.com/aw/pics/navbar/poweredByLogo_112x22.gif" border="0"></a>'); |
From: Brad C. <yo...@br...> - 2005-02-01 22:40:17
|
setTimeout support is quite new and a little hackish. A patch that might help is in the pipeline. --- "Lodge, Gary" <Gar...@ac...> wrote: > I get a periodic error that happens when I run a number of tests in > succession. If I run this test singley, it passes much more often. > > > [echo] Enclosed exception: > [echo] java.lang.IllegalStateException > [echo] at > org.mozilla.javascript.ScriptRuntime.getTopCallScope(ScriptRuntime.java:2752 > ) > [echo] at > org.mozilla.javascript.ScriptRuntime.toObjectOrNull(ScriptRuntime.java:838) > [echo] at > org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.ja > va:1963) > [echo] at > org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2869) > [echo] at > org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) > [echo] at > org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140 > ) > [echo] at > org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149 > ) > [echo] at > org.mozilla.javascript.Context.evaluateString(Context.java:1220) > [echo] at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript > Engine.java:295) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlP > age.java:786) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScri > pt.java:188) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:13 > 88) > [echo] at > com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:470) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen > t(HTMLParser.java:370) > [echo] at > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > [echo] at > org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.java:179 > ) > [echo] at > org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBinder.java > :280) > [echo] at > org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:100 > 9) > [echo] at > org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:639) > [echo] at > org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.j > ava:2343) > [echo] at > org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1820) > [echo] at > org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) > [echo] at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) > [echo] at > org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) > [echo] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP > arser.java:334) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:258) > [echo] at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC > reator.java:115) > [echo] at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat > or.java:84) > [echo] at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 > 95) > [echo] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:562) > [echo] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:477) > [echo] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:381) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java: > 109) > [echo] at > com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.j > ava:120) > [echo] at > com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:174 > 9) > [echo] at > com.ms.acceptancetest.WorkflowCreateAndUpdateAcceptanceTest.testCreateAndUpd > ateWorkflows(WorkflowCreateAndUpdateAcceptanceTest.java:36) > [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [echo] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > [echo] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > > > Here's a guess at what might be caussing the problem (since the call is > getTopCallScope?). Included with the stack trace is a lot of javascript. At > the bottom of the javascript is this code: > [echo] function onloadcalls(){ > [echo] eval(onloadfunctions) > [echo] pageLoaded = true; > [echo] } > > > this code executes after the page loads through this configuration > > window.onload = function(){setTimeout("onloadcalls()",1)}; > > > any ideas what might be causeing this error? > |
From: Brad C. <yo...@br...> - 2005-01-29 08:32:42
|
I briefly looked at the tests and I don't think repairing them will be easy. Unless there's some crafty way of pulling a W3C DOM out of the javascript stuff I think all the code in CommonTests will need to be rewritten to use HtmlUnit classes instead. --- Denis Krukovsky <dkr...@ya...> wrote: > Hi, > > > Thanks for giving htmlunit to the world. I'm trying to > use it to test one of my projects. I found good > article on it on > http://www-106.ibm.com/developerworks/websphere/library/techarticles/0409_wang/0409_wang.html > It is a pretty advanced sample of testing using > htmlunit. However there is one problem with the sample > is that it won't compile with the current version of > htmlunit! > > I found a large incompatible change was made in > htmlunit in around November 2003. I reviewed old code > and it seems IBM sample should work well with old > version of htmlunit. How would you recommend to modify > sample's code to work with recent versions of > htmlunit? > > Thanks for suggestions. > > > Denis Krukovsky > http://dotuseful.sourceforge.net/ > > > > > __________________________________ > Do you Yahoo!? > The all-new My Yahoo! - What will yours do? > http://my.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Lodge, G. <Gar...@ac...> - 2005-01-28 20:52:20
|
I get a periodic error that happens when I run a number of tests in succession. If I run this test singley, it passes much more often. [echo] Enclosed exception: [echo] java.lang.IllegalStateException [echo] at org.mozilla.javascript.ScriptRuntime.getTopCallScope(ScriptRuntime.java:2752 ) [echo] at org.mozilla.javascript.ScriptRuntime.toObjectOrNull(ScriptRuntime.java:838) [echo] at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.ja va:1963) [echo] at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2869) [echo] at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) [echo] at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140 ) [echo] at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149 ) [echo] at org.mozilla.javascript.Context.evaluateString(Context.java:1220) [echo] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:295) [echo] at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlP age.java:786) [echo] at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScri pt.java:188) [echo] at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:13 88) [echo] at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:470) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen t(HTMLParser.java:370) [echo] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) [echo] at org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.java:179 ) [echo] at org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBinder.java :280) [echo] at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:100 9) [echo] at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:639) [echo] at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.j ava:2343) [echo] at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1820) [echo] at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) [echo] at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) [echo] at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) [echo] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:334) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:258) [echo] at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:115) [echo] at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:84) [echo] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 95) [echo] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:562) [echo] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:477) [echo] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:381) [echo] at com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java: 109) [echo] at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.j ava:120) [echo] at com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:174 9) [echo] at com.ms.acceptancetest.WorkflowCreateAndUpdateAcceptanceTest.testCreateAndUpd ateWorkflows(WorkflowCreateAndUpdateAcceptanceTest.java:36) [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) Here's a guess at what might be caussing the problem (since the call is getTopCallScope?). Included with the stack trace is a lot of javascript. At the bottom of the javascript is this code: [echo] function onloadcalls(){ [echo] eval(onloadfunctions) [echo] pageLoaded = true; [echo] } this code executes after the page loads through this configuration window.onload = function(){setTimeout("onloadcalls()",1)}; any ideas what might be causeing this error? |
From: Brad C. <yo...@br...> - 2005-01-27 18:37:51
|
PhpWiki is setup and using mysql, go nuts! http://htmlunit.sourceforge.net/phpwiki/ Brad C |
From: Denis K. <dkr...@ya...> - 2005-01-27 16:48:43
|
Hi, Thanks for giving htmlunit to the world. I'm trying to use it to test one of my projects. I found good article on it on http://www-106.ibm.com/developerworks/websphere/library/techarticles/0409_wang/0409_wang.html It is a pretty advanced sample of testing using htmlunit. However there is one problem with the sample is that it won't compile with the current version of htmlunit! I found a large incompatible change was made in htmlunit in around November 2003. I reviewed old code and it seems IBM sample should work well with old version of htmlunit. How would you recommend to modify sample's code to work with recent versions of htmlunit? Thanks for suggestions. Denis Krukovsky http://dotuseful.sourceforge.net/ __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com |
From: David D.K. <ddk...@ki...> - 2005-01-27 15:10:26
|
There are four basic items that must hold true for Java to trust a secure (https/SSL) web site: 1. The certificate must NOT be expired. 2. The certificate's "common name" must match the hostname of the web site being accessed. 3. The hostname must resolve properly in DNS (either via local hosts/lmhosts file or via DNS service). 4. A chain of trust must be established between the certificate used for the web site and the trusted certificates in the $JAVA_HOME/lib/security/cacerts file (where $JAVA_HOME is the installation directory for your JVM). There are work-arounds for each of the above items in Java (item #3's work-around is adding an entry to /etc/hosts or the equivalent), but it's easiest just to generate a self-signed certificate with correct information for items #1 and #2, then add the self-signed certificate to the "cacerts" file mentioned above. This will cause the JVM to trust the self-signed certificate for SSL connections, which should resolve your issue. Extracting the certificate in a compatible format and importing it into the cacerts file is left as an exercise for the reader. You will need to use the "keytool" command (it comes with the JVM; see link below for documentation) to import the certificate into the "cacerts" file, although I would STRONGLY recommend making a backup copy of the "cacerts" file first. http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html If keytool won't recognize the certificate in whatever format you currently have it in, you will probably want to use the "openssl" tool to convert it to the "DER" format (which keytool likes). http://www.openssl.org/ Windows users may get openssl through Cygwin, or there is a stand-alone binary available on the second web site listed below: http://www.cygwin.com/ http://hunter.campbus.com/ Hope that helps! Dave On Jan 26, 2005, at 7:42 AM, Muri Josef (KCDA 11) wrote: > Hi everyone, > > I tried to run my htmlunit tests over an https url. The application > needs a login via an Entrust Pki certificate. > I configured my java environment for jsse (sdk 1.4.2) as described on > the homepage but when i run the tests i get > an Exception. See console: > [...] > *** > main, SEND SSLv3 ALERT: fatal, description = certificate_unknown > main, WRITE: SSLv3 Alert, length = 2 > main, called closeSocket() > main, handling exception: javax.net.ssl.SSLHandshakeException: > sun.security.validator.ValidatorException: No trusted certificate > found > main, called close() > main, called closeInternal(true) > > I can see the name of the certificate in the log but it seems not to > work.. > Any idea? > > Thanks for the input. > -Josef |
From: Muri J. (K. 11) <jos...@cr...> - 2005-01-26 14:34:15
|
Hi everyone, I tried to run my htmlunit tests over an https url. The application needs a login via an Entrust Pki certificate. I configured my java environment for jsse (sdk 1.4.2) as described on the homepage but when i run the tests i get an Exception. See console: chain [1] = [ [ Version: V3 Subject: OU=TEST Certification Authority Corporate ID, OU=xxx, O=xxx Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5 Key: SunRsaSign RSA public key: public exponent: 03 modulus: d43d57eb f1825c8c 0940b72c fbb86793 3947cafd 7265121f 56af2de2 0ef48c59 1bac951e ada3d5c2 d709a4be ff0bc319 626b2c66 e80d590d fd830320 be58b2bf 5f42d7b1 adc9da05 de9a3cd3 65f874da 74019003 21b81e5b 09963b32 e93899b3 e215df0b 24025679 87e3c806 83349e3a fd2707dd aba6fd24 5a8c8d36 f0b86997 Validity: [From: Thu Feb 25 19:59:39 CET 1999, To: Mon Feb 25 20:29:39 CET 2019] Issuer: OU=TEST Certification Authority Corporate ID, OU=xxx, O=xxx SerialNumber: [ 36d5a4a1] Certificate Extensions: 8 [1]: ObjectId: 1.2.840.113533.7.65.0 Criticality=false Extension unknown: DER encoded OCTET string = 0000: 04 0C 30 0A 1B 04 56 34 2E 30 03 02 04 90 ..0...V4.0.... [2]: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ ... ] ] [3]: ObjectId: 2.16.840.1.113730.1.1 Criticality=false NetscapeCertType [ SSL CA S/MIME CA Object Signing CA] [4]: ObjectId: 2.5.29.35 Criticality=false AuthorityKeyIdentifier [ KeyIdentifier [ ... ] ] [5]: ObjectId: 2.5.29.31 Criticality=false CRLDistributionPoints [ [DistributionPoint: [CN=CRL1, OU=TEST Certification Authority Corporate ID, OU=xxx, O=xxx] ]] [6]: ObjectId: 2.5.29.15 Criticality=false KeyUsage [ Key_CertSign Crl_Sign ] [7]: ObjectId: 2.5.29.16 Criticality=false PrivateKeyUsage: [ From: Thu Feb 25 19:59:39 CET 1999, To: Mon Feb 25 19:59:39 CET 2019] [8]: ObjectId: 2.5.29.19 Criticality=false BasicConstraints:[ CA:true PathLen:2147483647 ] ] Algorithm: [SHA1withRSA] Signature: ... *** main, SEND SSLv3 ALERT: fatal, description = certificate_unknown main, WRITE: SSLv3 Alert, length = 2 main, called closeSocket() main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found main, called close() main, called closeInternal(true) I can see the name of the certificate in the log but it seems not to work.. Any idea? Thanks for the input. -Josef |
From: Muri J. (K. 11) <jos...@cr...> - 2005-01-26 13:42:45
|
Hi everyone, I tried to run my htmlunit tests over an https url. The application needs a login via an Entrust Pki certificate. I configured my java environment for jsse (sdk 1.4.2) as described on the homepage but when i run the tests i get an Exception. See console: chain [1] = [ [ Version: V3 Subject: OU=TEST Certification Authority Corporate ID, OU=xxx, O=xxx Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5 Key: SunRsaSign RSA public key: public exponent: 03 modulus: d43d57eb f1825c8c 0940b72c fbb86793 3947cafd 7265121f 56af2de2 0ef48c59 1bac951e ada3d5c2 d709a4be ff0bc319 626b2c66 e80d590d fd830320 be58b2bf 5f42d7b1 adc9da05 de9a3cd3 65f874da 74019003 21b81e5b 09963b32 e93899b3 e215df0b 24025679 87e3c806 83349e3a fd2707dd aba6fd24 5a8c8d36 f0b86997 Validity: [From: Thu Feb 25 19:59:39 CET 1999, To: Mon Feb 25 20:29:39 CET 2019] Issuer: OU=TEST Certification Authority Corporate ID, OU=xxx, O=xxx SerialNumber: [ 36d5a4a1] Certificate Extensions: 8 [1]: ObjectId: 1.2.840.113533.7.65.0 Criticality=false Extension unknown: DER encoded OCTET string = 0000: 04 0C 30 0A 1B 04 56 34 2E 30 03 02 04 90 ..0...V4.0.... [2]: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ ... ] ] [3]: ObjectId: 2.16.840.1.113730.1.1 Criticality=false NetscapeCertType [ SSL CA S/MIME CA Object Signing CA] [4]: ObjectId: 2.5.29.35 Criticality=false AuthorityKeyIdentifier [ KeyIdentifier [ ... ] ] [5]: ObjectId: 2.5.29.31 Criticality=false CRLDistributionPoints [ [DistributionPoint: [CN=CRL1, OU=TEST Certification Authority Corporate ID, OU=xxx, O=xxx] ]] [6]: ObjectId: 2.5.29.15 Criticality=false KeyUsage [ Key_CertSign Crl_Sign ] [7]: ObjectId: 2.5.29.16 Criticality=false PrivateKeyUsage: [ From: Thu Feb 25 19:59:39 CET 1999, To: Mon Feb 25 19:59:39 CET 2019] [8]: ObjectId: 2.5.29.19 Criticality=false BasicConstraints:[ CA:true PathLen:2147483647 ] ] Algorithm: [SHA1withRSA] Signature: ... *** main, SEND SSLv3 ALERT: fatal, description = certificate_unknown main, WRITE: SSLv3 Alert, length = 2 main, called closeSocket() main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found main, called close() main, called closeInternal(true) I can see the name of the certificate in the log but it seems not to work.. Any idea? Thanks for the input. -Josef |
From: Muri J. (K. 11) <jos...@cr...> - 2005-01-26 13:22:17
|
Muri Josef (KCDA 11) would like to recall the message, "". |