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: Kim H. <kim...@vi...> - 2005-07-07 14:04:00
|
While unittesting some advanced dynamic table code, I mentioned some weird things going on. It took me a while to pinpoint the situation, but I've got it. It appeared to be reproducable using a very simple table which I grabbed from the HTMLUnit homepage. The problem is that after removing a tbody from a table using removeChild, the rows inside are still accessable throug document.getElementById(rowId), which unfortunately isn't acceptable. This code passes in 'any' browser, but throws a TypeError in my Unittest using HTMLUnit. The code I used to simply reproduce the strange behaviour: <html> <head> <title>Table sample</title> </head> <body> <table id="table1"> <caption>My complex table</caption> <thead> <tr> <th>Number</th> <th>Description</th> </tr> </thead> <tfoot> <tr> <td>7</td> <td></td> </tr> </tfoot> <tbody id="body1"> <tr id="row1"> <td>5</td> <td>Bicycle</td> </tr> </tbody>> <tbody id="body2"> <tr id="row2"> <td>2</td> <td>Tricycle</td> </tr> </tbody>> </table> <script type="text/javascript" language="JavaScript"> var table = document.getElementById('table1'); table.removeChild(document.getElementById('body1')); table.removeChild(document.getElementById('body2')); if (document.getElementById('row1') != null) { throw new TypeError('row should be null by now!!'); } </script> </body> </html> |
From: Thomas P. <pi...@pd...> - 2005-07-07 07:39:52
|
Hi, could anybody give me an example, how can I invoke a Javascript-Function with Htmlunit? Perhaps like this: <script type="text/javascript"> function FunctionXYZ () { ... } </script> final WebClient webClient = new WebClient(); final URL url = new URL( "http://y.x.z/test.html" ); final HtmlPage page1 = ( HtmlPage ) webClient.getPage( url ); final ScriptResult result = page1.executeJavaScriptFunctionIfPossible( ?FunctionXYZ?, ???, this, null, null ); I don't know, which parameters are required. Thanks, Thomas |
From: David D. K. <ddk...@ki...> - 2005-07-05 12:00:16
|
I'm not sure if Ant is supported as the build mechanism anymore. Use Maven instead. http://maven.apache.org/ http://htmlunit.sourceforge.net/buildingFromCvs.html Dave On Jul 5, 2005, at 2:32 AM, Gael Harbonnier wrote: > Hi, > > I downloaded the lastest version from CVS and I try to compile it > with ant. > I've got 4 errors. I use jdk 1.4.2_08 and ant 1.6.3 can you help me ? > > Gael > > > > Buildfile: build.xml > > clean: > [delete] Deleting directory C:\Documents and Settings\GHARBONNIER > \Mes documen > ts\workspace\htmlunitCVS\ant-target > > maketarget: > [mkdir] Created dir: C:\Documents and Settings\GHARBONNIER\Mes > documents\wor > kspace\htmlunitCVS\ant-target\classes > [mkdir] Created dir: C:\Documents and Settings\GHARBONNIER\Mes > documents\wor > kspace\htmlunitCVS\ant-target\test-classes > > compile: > [javac] Compiling 210 source files to C:\Documents and Settings > \GHARBONNIER\ > Mes documents\workspace\htmlunitCVS\ant-target\classes > [javac] C:\Documents and Settings\GHARBONNIER\Mes documents > \workspace\htmlun > itCVS\src\java\com\gargoylesoftware\htmlunit\javascript > \ElementArray.java:288: e > xception org.jaxen.saxpath.SAXPathException is never thrown in body > of correspon > ding try statement > [javac] catch (final SAXPathException e) { > [javac] ^ > [javac] C:\Documents and Settings\GHARBONNIER\Mes documents > \workspace\htmlun > itCVS\src\java\com\gargoylesoftware\htmlunit\javascript > \ElementArray.java:285: u > nreported exception org.saxpath.SAXPathException; must be caught or > declared to > be thrown > [javac] final XPath xpathName = > currentArray.xpath_.getNavigator > ().parseXPath(xpathExpr); > [javac] > ^ > [javac] C:\Documents and Settings\GHARBONNIER\Mes documents > \workspace\htmlun > itCVS\src\java\com\gargoylesoftware\htmlunit\javascript > \ElementArray.java:358: e > xception org.jaxen.saxpath.SAXPathException is never thrown in body > of correspon > ding try statement > [javac] catch (final SAXPathException e) { > [javac] ^ > [javac] C:\Documents and Settings\GHARBONNIER\Mes documents > \workspace\htmlun > itCVS\src\java\com\gargoylesoftware\htmlunit\javascript > \ElementArray.java:356: u > nreported exception org.saxpath.SAXPathException; must be caught or > declared to > be thrown > [javac] array.init(node_, xpath_.getNavigator > ().parseXPath(newXP > athExpr)); > > [javac] > ^ > [javac] 4 errors > > BUILD FAILED > C:\Documents and Settings\GHARBONNIER\Mes documents\workspace > \htmlunitCVS\build. > xml:58: Compile failed; see the compiler error output for details. > > Total time: 10 seconds > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Gael H. <gae...@ho...> - 2005-07-05 07:33:03
|
Hi, I downloaded the lastest version from CVS and I try to compile it with ant. I've got 4 errors. I use jdk 1.4.2_08 and ant 1.6.3 can you help me ? Gael Buildfile: build.xml clean: [delete] Deleting directory C:\Documents and Settings\GHARBONNIER\Mes documen ts\workspace\htmlunitCVS\ant-target maketarget: [mkdir] Created dir: C:\Documents and Settings\GHARBONNIER\Mes documents\wor kspace\htmlunitCVS\ant-target\classes [mkdir] Created dir: C:\Documents and Settings\GHARBONNIER\Mes documents\wor kspace\htmlunitCVS\ant-target\test-classes compile: [javac] Compiling 210 source files to C:\Documents and Settings\GHARBONNIER\ Mes documents\workspace\htmlunitCVS\ant-target\classes [javac] C:\Documents and Settings\GHARBONNIER\Mes documents\workspace\htmlun itCVS\src\java\com\gargoylesoftware\htmlunit\javascript\ElementArray.java:288: e xception org.jaxen.saxpath.SAXPathException is never thrown in body of correspon ding try statement [javac] catch (final SAXPathException e) { [javac] ^ [javac] C:\Documents and Settings\GHARBONNIER\Mes documents\workspace\htmlun itCVS\src\java\com\gargoylesoftware\htmlunit\javascript\ElementArray.java:285: u nreported exception org.saxpath.SAXPathException; must be caught or declared to be thrown [javac] final XPath xpathName = currentArray.xpath_.getNavigator ().parseXPath(xpathExpr); [javac] ^ [javac] C:\Documents and Settings\GHARBONNIER\Mes documents\workspace\htmlun itCVS\src\java\com\gargoylesoftware\htmlunit\javascript\ElementArray.java:358: e xception org.jaxen.saxpath.SAXPathException is never thrown in body of correspon ding try statement [javac] catch (final SAXPathException e) { [javac] ^ [javac] C:\Documents and Settings\GHARBONNIER\Mes documents\workspace\htmlun itCVS\src\java\com\gargoylesoftware\htmlunit\javascript\ElementArray.java:356: u nreported exception org.saxpath.SAXPathException; must be caught or declared to be thrown [javac] array.init(node_, xpath_.getNavigator().parseXPath(newXP athExpr)); [javac] ^ [javac] 4 errors BUILD FAILED C:\Documents and Settings\GHARBONNIER\Mes documents\workspace\htmlunitCVS\build. xml:58: Compile failed; see the compiler error output for details. Total time: 10 seconds |
From: Kent T. <ke...@cp...> - 2005-07-03 01:26:01
|
David D. Kilzer <ddkilzer <at> kilzer.net> writes: > > Use a timer thread to make sure the test times out while it's waiting > for a particular result. > > You can never be sure when the result is returned unless some extra > functionality is added to the XMLHttpRequest implementation in > HtmlUnit to make it easier to test. Thanks for the reply. I tried that but it throws an exception saying there is Context associated with the current thread. Anyway, my solution now is to make the request synchronous. This works quite well. |
From: David D. K. <ddk...@ki...> - 2005-07-02 19:49:10
|
Try to create a reduced test case that fails, then post a bug. Line =20 530 from the attached menu.js file doesn't look like it matches up =20 with the error message below, though: snObj =3D document.getElementById('submenu-'+mid); Looking at the source for =20 com.gargoylesoft.htmlunit.javascript.host.Style, I would say that =20 access to attributes is possible, although I've never used this =20 feature myself. Dave On Jun 30, 2005, at 5:44 AM, P=F6ppl Alexander wrote: > Hello > > I get the following exception, while executing the following =20 > testcase. The > exception occurs after > final HtmlPage page2 =3D (HtmlPage)button.click(); > > Just an idea: Is the access of attributes of the style JavaScript =20 > object not > supported ? > > I attach the javascript module menu_.js > > =3D=3D=3D=3D=3D=3D=3D test case =3D=3D=3D=3D=3D=3D=3D=3D > public static void main(String[] args) throws Exception { > // Internet Explorer 6.0.* > final BrowserVersion browserVersion =3D new > BrowserVersion("Microsoft Internet Explorer", > "4.0 (compatible; MSIE 6.0; Windows > NT 5.1; SV1; .NET CLR 1.1.4322)", > "Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.1; SV1; .NET CLR 1.1.4322)", "1.2", 6F); > final WebClient webClient =3D new WebClient(browserVersion); > final URL url =3D new URL(START_URL); > final HtmlPage page1 =3D (HtmlPage)webClient.getPage(url); > > final HtmlForm form =3D page1.getFormByName("logonform"); > final HtmlTextInput textField =3D > (HtmlTextInput)form.getInputByName("userId"); > // Change the value of the text field > textField.setValueAttribute(USER_ID); > > final HtmlPasswordInput password =3D > (HtmlPasswordInput)form.getInputByName("password"); > password.setValueAttribute(PASSWORD); > > final HtmlButton button =3D > (HtmlButton)form.getButtonsByName("submitButton").get(0); > > // Now submit the form by clicking the button and get back > the > // second page. > final HtmlPage page2 =3D (HtmlPage)button.click(); > > System.out.println(page2.asXml()); > > ... > } > > =3D=3D=3D=3D=3D=3D=3D EXCEPTION START =3D=3D=3D=3D=3D=3D=3D=3D > EcmaError: lineNumber=3D[530] column=3D[0] lineSource=3D[null] name=3D=20= > [TypeError] > sourceName=3D[templates/js/menu_.js] message=3D[TypeError: Cannot read = =20 > property > "0" from undefined (templates/js/menu_.js#530)] > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read > property "0" from undefined (templates/js/menu_.js#530) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction=20= > (JavaS > criptEngine.java:304) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionI=20= > fPossi > ble(HtmlPage.java:758) > at > com.gargoylesoftware.htmlunit.html.ClickableElement.click=20 > (ClickableElement.j > ava:108) > at Test.main(Test.java:60) > Enclosed exception: > org.mozilla.javascript.EcmaError: TypeError: Cannot read property =20 > "0" from > undefined (templates/js/menu_.js#530) > at > org.mozilla.javascript.ScriptRuntime.constructError=20 > (ScriptRuntime.java:3240) > at > org.mozilla.javascript.ScriptRuntime.constructError=20 > (ScriptRuntime.java:3230) > at > org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:=20 > 3246) > at > org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:=20 > 3265) > at > org.mozilla.javascript.ScriptRuntime.undefReadError=20 > (ScriptRuntime.java:3278) > at > org.mozilla.javascript.ScriptRuntime.getObjectIndex=20 > (ScriptRuntime.java:1349) > at > org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2777) > at > org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) > at > org.mozilla.javascript.InterpretedFunction.call=20 > (InterpretedFunction.java:140 > ) > at > org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:=20= > 304) > at > org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:=20 > 2769) > at > org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) > at > org.mozilla.javascript.InterpretedFunction.call=20 > (InterpretedFunction.java:140 > ) > at > com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call=20 > (EventHandler > .java:88) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction=20= > (JavaS > criptEngine.java:299) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionI=20= > fPossi > ble(HtmlPage.java:758) > at > com.gargoylesoftware.htmlunit.html.ClickableElement.click=20 > (ClickableElement.j > ava:108) > at Test.main(Test.java:60) > =3D=3D CALLING JAVASCRIPT =3D=3D > function () { > [native code, arity=3D0] > } > > =3D=3D=3D=3D=3D=3D=3D EXCEPTION END =3D=3D=3D=3D=3D=3D=3D=3D > > --=20 > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.323 / Virus Database: 267.8.0/27 - Release Date: =20 > 23.06.2005 > > > > > <menu_.js> > |
From: David D. K. <ddk...@ki...> - 2005-07-02 16:15:24
|
Use a timer thread to make sure the test times out while it's waiting for a particular result. You can never be sure when the result is returned unless some extra functionality is added to the XMLHttpRequest implementation in HtmlUnit to make it easier to test. Dave On Jul 1, 2005, at 11:08 PM, Kent Tong wrote: > Hi, > > As AJAX (XMLHttpRequest) is asynchronous, how can I test it using > HtmlUnit? > That is, how to ensure that the result has been returned? > > Thanks! |
From: Kent T. <ke...@cp...> - 2005-07-02 04:28:59
|
Hi, As AJAX (XMLHttpRequest) is asynchronous, how can I test it using HtmlUnit? That is, how to ensure that the result has been returned? Thanks! |
From: Brad C. <yo...@br...> - 2005-07-01 19:21:02
|
There's no reason it shouldn't work but an out of memory error will occur at some point. If that didn't happen to you then the size of the html is probably no the issue. Brad C --- Sridhar Ranganathan <Sri...@Su...> wrote: > Hi, > > I am running into the following situation : > > Using htmlunit 1.5/1.6 (both versions having the same problem). > > I have to click a button on page-1 which takes me to the page-2. Page-2 > has a table with around 500+ rows and with 4 columns. > > After doing the button.click(), the click operation takes forever and > the page is not returned at all. The test is stuck there. > === > > HtmlPage temPage = (HtmlPage) > wizForm.getInputByName(inputName).click(); > > === > If I reduce the number of entries in the table - to say 100, then I > could get the temPage much faster. > > When I tried these things manually (without running via htmlunit), they > all work fine even with so many entries. > > Is there any place I can tune any parameters to make htmlunit work with > huge number of elements ? > > Thanks. > -- > Sridhar R > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Sridhar R. <Sri...@Su...> - 2005-07-01 17:18:18
|
Hi, I am running into the following situation : Using htmlunit 1.5/1.6 (both versions having the same problem). I have to click a button on page-1 which takes me to the page-2. Page-2 has a table with around 500+ rows and with 4 columns. After doing the button.click(), the click operation takes forever and the page is not returned at all. The test is stuck there. === HtmlPage temPage = (HtmlPage) wizForm.getInputByName(inputName).click(); === If I reduce the number of entries in the table - to say 100, then I could get the temPage much faster. When I tried these things manually (without running via htmlunit), they all work fine even with so many entries. Is there any place I can tune any parameters to make htmlunit work with huge number of elements ? Thanks. -- Sridhar R |
From: <Ale...@ag...> - 2005-06-30 10:45:40
|
Hello I get the following exception, while executing the following testcase. The exception occurs after final HtmlPage page2 = (HtmlPage)button.click(); Just an idea: Is the access of attributes of the style JavaScript object not supported ? I attach the javascript module menu_.js ======= test case ======== public static void main(String[] args) throws Exception { // Internet Explorer 6.0.* final BrowserVersion browserVersion = new BrowserVersion("Microsoft Internet Explorer", "4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)", "1.2", 6F); final WebClient webClient = new WebClient(browserVersion); final URL url = new URL(START_URL); final HtmlPage page1 = (HtmlPage)webClient.getPage(url); final HtmlForm form = page1.getFormByName("logonform"); final HtmlTextInput textField = (HtmlTextInput)form.getInputByName("userId"); // Change the value of the text field textField.setValueAttribute(USER_ID); final HtmlPasswordInput password = (HtmlPasswordInput)form.getInputByName("password"); password.setValueAttribute(PASSWORD); final HtmlButton button = (HtmlButton)form.getButtonsByName("submitButton").get(0); // Now submit the form by clicking the button and get back the // second page. final HtmlPage page2 = (HtmlPage)button.click(); System.out.println(page2.asXml()); ... } ======= EXCEPTION START ======== EcmaError: lineNumber=[530] column=[0] lineSource=[null] name=[TypeError] sourceName=[templates/js/menu_.js] message=[TypeError: Cannot read property "0" from undefined (templates/js/menu_.js#530)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "0" from undefined (templates/js/menu_.js#530) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaS criptEngine.java:304) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossi ble(HtmlPage.java:758) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.j ava:108) at Test.main(Test.java:60) Enclosed exception: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "0" from undefined (templates/js/menu_.js#530) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3265) at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3278) at org.mozilla.javascript.ScriptRuntime.getObjectIndex(ScriptRuntime.java:1349) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2777) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140 ) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140 ) at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler .java:88) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaS criptEngine.java:299) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossi ble(HtmlPage.java:758) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.j ava:108) at Test.main(Test.java:60) == CALLING JAVASCRIPT == function () { [native code, arity=0] } ======= EXCEPTION END ======== -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.0/27 - Release Date: 23.06.2005 |
From: Ritesh T. <ru...@ya...> - 2005-06-28 21:37:18
|
Hi, Looks like HTMLUnit is not handling the compressed responses from the http server (http 1.1). Most of the browsers seem to uncompress the response from the server based on (content-encoding http response header value) and render the page. Does HTMLUnit have any support for compressed response? Thanks Ritesh |
From: <bd...@kn...> - 2005-06-28 20:54:21
|
For some strange reason, the end of my first email is missing (at least in the version that has been sent back to me from the list): Here is the missing text: >> With regard to 2) - I have seen in the API that there is an execute method of the JavaScriptEngine class, and I have successfully executed simple javascript. However, I do not appear to be able to access any of my javascript variables or javascript objects that exist on the page that is passed to this method. I know that the API says "users of HtmlUnit shouldn't need anything in this package," but I think it would be useful if we could access it as a way of unit-testing javascript. Assuming that, can someone explain to me how to have the methods of this class work with objects and variables on the relevant page? I'm particularly interested in the method I referred to above, but also to the callFunction and toString methods of the class. Regards, Bernard Devlin << |
From: Brad C. <yo...@br...> - 2005-06-28 02:03:43
|
#1 should work. In order to figure out why it doesn't in your case we will need a failing example (the smaller the better). #2 is possible but highly discouraged and completely unsupported. You can find an example somewhere in the mailing list archives if you want to do this. Brad C --- bd...@kn... wrote: > Hi, > > I started using HtmlUnit a couple of weeks ago, and I've generated quite a > complex suite of tests (using HtmlUnit 1.6), and I think that HtmlUnit is > really an excellent piece of work. However, I have a couple of problems. > > 1) accessing any html element that is dynamically composed by javascript > does not work for me e.g. > a) the contents of a table that is composed in the browser (I'm referring > to textual values inside the table data elements, not to input elements > inside the table data elements); > b) fields that have their value set dynamically when the page has loaded > (the values are in the fields, but HtmlUnit tests see the field as empty). > > In both these cases, the javascript is executing in the page body, not in > the header (if that is significant). Please let me know if I should not > expect a) and b) to work - from what I have read in the docs, and in this > mailing list, it certainly seems that a) should be working. > > 2) I would also like to be able to access the values of Javascript > variables - certain parts of my site are personalised by javascript which > is composed on the fly, depending on a user's history and preferences. It > would be great if I could actually test the values of javascript variables > in my unit tests, and even execute javascript functions. I realise that > in the absence of this, I could do some of these tests if 1)b) above > worked. > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: <bd...@kn...> - 2005-06-28 01:37:42
|
Hi, I started using HtmlUnit a couple of weeks ago, and I've generated quite a complex suite of tests (using HtmlUnit 1.6), and I think that HtmlUnit is really an excellent piece of work. However, I have a couple of problems. 1) accessing any html element that is dynamically composed by javascript does not work for me e.g. a) the contents of a table that is composed in the browser (I'm referring to textual values inside the table data elements, not to input elements inside the table data elements); b) fields that have their value set dynamically when the page has loaded (the values are in the fields, but HtmlUnit tests see the field as empty). In both these cases, the javascript is executing in the page body, not in the header (if that is significant). Please let me know if I should not expect a) and b) to work - from what I have read in the docs, and in this mailing list, it certainly seems that a) should be working. 2) I would also like to be able to access the values of Javascript variables - certain parts of my site are personalised by javascript which is composed on the fly, depending on a user's history and preferences. It would be great if I could actually test the values of javascript variables in my unit tests, and even execute javascript functions. I realise that in the absence of this, I could do some of these tests if 1)b) above worked. |
From: Marco M. <ma...@ma...> - 2005-06-24 11:48:51
|
Hi. I need to test a page with a custom html object in the form: <object id="myobj" classid="clsid:XXXXX" param="a"></object> I tried the ActiveX object map using the classid but seems to have no effect. Is there any document that explains how to add a custom object to the html parser ? Bye |
From: Brad C. <yo...@br...> - 2005-06-23 18:25:01
|
Made for a decent example so I put it on the wiki: http://htmlunit.sourceforge.net/phpwiki/index.php/AddFormField Brad C --- Ritesh Trivedi <ru...@ya...> wrote: > Hi, > > I have a requirement where I know that the server takes an "optional" hidden > field, when set to certain value, the resoponse changes. > > The problem is, its undocumented field and is NOT included in the form, so I need > a way to add hidden field to the existing form with the desired name/value. > > How do I do that in HTMLUnit? > > Thanks > Ritesh > |
From: Ritesh T. <ru...@ya...> - 2005-06-23 18:05:19
|
Hi, I have a requirement where I know that the server takes an "optional" hidden field, when set to certain value, the resoponse changes. The problem is, its undocumented field and is NOT included in the form, so I need a way to add hidden field to the existing form with the desired name/value. How do I do that in HTMLUnit? Thanks Ritesh |
From: Casey C. <cr...@na...> - 2005-06-16 19:16:48
|
Turns out it was the new code to enforce browser capabilities. I was incorrectly creating my custom BrowserVersion and as a result the min-version constraints for the location property on the window object weren't being met. A slight tweak to my custom BrowserVersion fixed it. Thanks for the help -- Casey On Wed, Jun 15, 2005 at 11:55:34PM -0500, David D. Kilzer wrote: > I would look at > com.gargoylesoftware.htmlunit.javascript.host.Window.jsGet_top(). > Actually, I would look at where TopLevelWindow gets created. It > seems that not all of its properties on the SimpleScriptable object > that it contains are being set properly during construction (or > shortly thereafter). IntelliJ IDEA says the WebClient and Window > classes are the two production (non-test) classes where it's being > used. (NOTE: My copy of HtmlUnit from CVS is a bit out-dated, > though. Please double-check this for yourself.) > > Dave > > > On Jun 15, 2005, at 6:08 PM, Casey Crabb wrote: > > >The problem still occurs with CVS as of 5pm CDT today. > > > >I've attached the stacktrace. > > > >Line 875 of that javascript file is; > > if (window.top.location.href.indexOf('more.jsp')<0) { > > > >The location attribute of the Window returned by top is undefined. > > > >Any ideas of where I should look in HTMLUnit (other than generating > >the unified diff between 1.5 and 1.6)? > > > >-- > >Casey > > > >On Wed, Jun 15, 2005 at 03:01:47PM -0700, Brad Clarke wrote: > > > >>Could be a lot of things. A stack would help narrow it down. > >> > >>Could you pull the latest CVS and see if it's still broken before > >>spending too much time isolating it? There has been a change since > >>1.6 to how things are scoped that might have something to do with it. > >> > >>Brad C > >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: David D. K. <ddk...@ki...> - 2005-06-16 04:56:03
|
I would look at com.gargoylesoftware.htmlunit.javascript.host.Window.jsGet_top(). Actually, I would look at where TopLevelWindow gets created. It seems that not all of its properties on the SimpleScriptable object that it contains are being set properly during construction (or shortly thereafter). IntelliJ IDEA says the WebClient and Window classes are the two production (non-test) classes where it's being used. (NOTE: My copy of HtmlUnit from CVS is a bit out-dated, though. Please double-check this for yourself.) Dave On Jun 15, 2005, at 6:08 PM, Casey Crabb wrote: > The problem still occurs with CVS as of 5pm CDT today. > > I've attached the stacktrace. > > Line 875 of that javascript file is; > if (window.top.location.href.indexOf('more.jsp')<0) { > > The location attribute of the Window returned by top is undefined. > > Any ideas of where I should look in HTMLUnit (other than generating > the unified diff between 1.5 and 1.6)? > > -- > Casey > > On Wed, Jun 15, 2005 at 03:01:47PM -0700, Brad Clarke wrote: > >> Could be a lot of things. A stack would help narrow it down. >> >> Could you pull the latest CVS and see if it's still broken before >> spending too much time isolating it? There has been a change since >> 1.6 to how things are scoped that might have something to do with it. >> >> Brad C >> |
From: David D. K. <ddk...@ki...> - 2005-06-16 04:37:33
|
If it's not currently supported, I would recommend filing an RFE (request for enhancement) on the SourceForge site. If you have time, you could (1) write a test case (that breaks) and attach it in a patch to the RFE, then (2) fix the test case by implementing the enhancement and attaching a patch for it. Dave On Jun 15, 2005, at 6:34 PM, Shanbhag, Gautam wrote: > Hi > Are there any plans to support css stylesheets array in document > object of htmlunit's javascript. > E.g > for ( var i = 0; i < document.styleSheets.length; i++ ) { > var styleSheet = document.styleSheets[i]; > } > Is there any workaround available for this? > > Thanks, > gautam > |
From: Shanbhag, G. <ga...@am...> - 2005-06-15 23:34:58
|
Hi Are there any plans to support css stylesheets array in document object = of htmlunit's javascript. E.g for ( var i =3D 0; i < document.styleSheets.length; i++ ) { var styleSheet =3D document.styleSheets[i]; } Is there any workaround available for this? Thanks, gautam |
From: Casey C. <cr...@na...> - 2005-06-15 23:08:45
|
The problem still occurs with CVS as of 5pm CDT today. I've attached the stacktrace. Line 875 of that javascript file is; if (window.top.location.href.indexOf('more.jsp')<0) { The location attribute of the Window returned by top is undefined. Any ideas of where I should look in HTMLUnit (other than generating the unified diff between 1.5 and 1.6)? -- Casey On Wed, Jun 15, 2005 at 03:01:47PM -0700, Brad Clarke wrote: > Could be a lot of things. A stack would help narrow it down. > > Could you pull the latest CVS and see if it's still broken before > spending too much time isolating it? There has been a change since > 1.6 to how things are scoped that might have something to do with it. > > Brad C > > --- Casey Crabb <cr...@na...> wrote: > > > Hey all, > > > > I found a regression between HTMLUnit 1.5 and 1.6, but haven't been > > able to pin point it yet. I have javascript that uses > > window.opener.location to refresh parent pages. In htmlunit 1.5 these > > work just fine. Upon upgrading to HMTLUnit 1.6 the .location on the > > window.opener is undefined. > > > > I tried to write a small testcase to reproduce the problem, but so far > > have been unable to reproduce it outside the product I'm working on. > > > > Does anyone have an idea where this would be breaking down in 1.6? > > > > -- > > Casey > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Brad C. <yo...@br...> - 2005-06-15 22:02:05
|
Could be a lot of things. A stack would help narrow it down. Could you pull the latest CVS and see if it's still broken before spending too much time isolating it? There has been a change since 1.6 to how things are scoped that might have something to do with it. Brad C --- Casey Crabb <cr...@na...> wrote: > Hey all, > > I found a regression between HTMLUnit 1.5 and 1.6, but haven't been > able to pin point it yet. I have javascript that uses > window.opener.location to refresh parent pages. In htmlunit 1.5 these > work just fine. Upon upgrading to HMTLUnit 1.6 the .location on the > window.opener is undefined. > > I tried to write a small testcase to reproduce the problem, but so far > have been unable to reproduce it outside the product I'm working on. > > Does anyone have an idea where this would be breaking down in 1.6? > > -- > Casey |
From: Casey C. <cr...@na...> - 2005-06-15 21:34:11
|
Hey all, I found a regression between HTMLUnit 1.5 and 1.6, but haven't been able to pin point it yet. I have javascript that uses window.opener.location to refresh parent pages. In htmlunit 1.5 these work just fine. Upon upgrading to HMTLUnit 1.6 the .location on the window.opener is undefined. I tried to write a small testcase to reproduce the problem, but so far have been unable to reproduce it outside the product I'm working on. Does anyone have an idea where this would be breaking down in 1.6? -- Casey |