You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(10) |
Aug
(30) |
Sep
(15) |
Oct
(26) |
Nov
(12) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(27) |
Mar
(73) |
Apr
(17) |
May
(17) |
Jun
(78) |
Jul
(67) |
Aug
(60) |
Sep
(89) |
Oct
(140) |
Nov
(173) |
Dec
(46) |
2004 |
Jan
(39) |
Feb
(7) |
Mar
(21) |
Apr
(31) |
May
(13) |
Jun
(86) |
Jul
(14) |
Aug
(14) |
Sep
(53) |
Oct
(184) |
Nov
(186) |
Dec
(319) |
2005 |
Jan
(336) |
Feb
(274) |
Mar
(226) |
Apr
(102) |
May
(196) |
Jun
(130) |
Jul
(119) |
Aug
(143) |
Sep
(76) |
Oct
(85) |
Nov
(70) |
Dec
(159) |
2006 |
Jan
(125) |
Feb
(100) |
Mar
(80) |
Apr
(39) |
May
(55) |
Jun
(58) |
Jul
(50) |
Aug
(76) |
Sep
(55) |
Oct
(101) |
Nov
(163) |
Dec
(85) |
2007 |
Jan
(56) |
Feb
(53) |
Mar
(180) |
Apr
(221) |
May
(290) |
Jun
(199) |
Jul
(322) |
Aug
(515) |
Sep
(121) |
Oct
(297) |
Nov
(177) |
Dec
(103) |
2008 |
Jan
(516) |
Feb
(315) |
Mar
(586) |
Apr
(615) |
May
(197) |
Jun
(381) |
Jul
(390) |
Aug
(195) |
Sep
(603) |
Oct
(499) |
Nov
(622) |
Dec
(350) |
2009 |
Jan
(313) |
Feb
(338) |
Mar
(507) |
Apr
(317) |
May
(197) |
Jun
(375) |
Jul
(235) |
Aug
(424) |
Sep
(410) |
Oct
(338) |
Nov
(286) |
Dec
(306) |
2010 |
Jan
(367) |
Feb
(339) |
Mar
(371) |
Apr
(172) |
May
(233) |
Jun
(264) |
Jul
(421) |
Aug
(110) |
Sep
(218) |
Oct
(189) |
Nov
(185) |
Dec
(168) |
2011 |
Jan
(145) |
Feb
(213) |
Mar
(205) |
Apr
(64) |
May
(159) |
Jun
(67) |
Jul
(104) |
Aug
(126) |
Sep
(144) |
Oct
(106) |
Nov
(154) |
Dec
(225) |
2012 |
Jan
(111) |
Feb
(87) |
Mar
(131) |
Apr
(102) |
May
(180) |
Jun
(160) |
Jul
(412) |
Aug
(315) |
Sep
(311) |
Oct
(369) |
Nov
(464) |
Dec
(284) |
2013 |
Jan
(343) |
Feb
(165) |
Mar
(174) |
Apr
(120) |
May
(153) |
Jun
(134) |
Jul
(202) |
Aug
(105) |
Sep
(228) |
Oct
(332) |
Nov
(192) |
Dec
(219) |
2014 |
Jan
(348) |
Feb
(194) |
Mar
(189) |
Apr
(188) |
May
(297) |
Jun
(206) |
Jul
(79) |
Aug
(279) |
Sep
(111) |
Oct
(159) |
Nov
(61) |
Dec
(78) |
2015 |
Jan
(152) |
Feb
(145) |
Mar
(239) |
Apr
(223) |
May
(248) |
Jun
(296) |
Jul
(172) |
Aug
(189) |
Sep
(338) |
Oct
(217) |
Nov
(131) |
Dec
(184) |
2016 |
Jan
(118) |
Feb
(221) |
Mar
(414) |
Apr
(412) |
May
(303) |
Jun
(133) |
Jul
(129) |
Aug
(121) |
Sep
(136) |
Oct
(67) |
Nov
(89) |
Dec
(245) |
2017 |
Jan
(349) |
Feb
(90) |
Mar
(328) |
Apr
(430) |
May
(284) |
Jun
(199) |
Jul
(164) |
Aug
(120) |
Sep
(57) |
Oct
(105) |
Nov
(108) |
Dec
(146) |
2018 |
Jan
(85) |
Feb
(48) |
Mar
(97) |
Apr
(62) |
May
(64) |
Jun
(136) |
Jul
(123) |
Aug
(87) |
Sep
(17) |
Oct
(27) |
Nov
(9) |
Dec
(16) |
2019 |
Jan
(9) |
Feb
(17) |
Mar
(18) |
Apr
(14) |
May
(8) |
Jun
|
Jul
(6) |
Aug
(12) |
Sep
(5) |
Oct
|
Nov
(2) |
Dec
|
2020 |
Jan
(8) |
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
(6) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mike B. <MBr...@go...> - 2003-04-22 18:21:52
|
Attached is a patch that enhances the HtmlElment.asText() function to produce results that are both closer to what a real web browser produces and easier to write tests against. The new code does two extra things: - translates non-breaking spaces (character 160) to regular spaces=20 - removes extra whitespace (all strings of whitespace are reduced to a single space) However, the changes will cause issues for existing code that relies on the old behavior. =20 Mike Bresnahan |
From: Mike B. <MBr...@go...> - 2003-04-22 18:19:44
|
The junit Ant target appears to be broken. ~/htmlunit-mjb: ant junit Buildfile: build.xml junit: [java] Class not found "com.gargoylesoftware.htmlunit.test.MainTestSuite" [java] Java Result: -1 BUILD SUCCESSFUL=20 |
From: Mike B. <MBr...@go...> - 2003-04-22 18:09:40
|
> I realize this is inconvenient - sorry. Not a problem at all! Mike |
From: Mike B. <mb...@Ga...> - 2003-04-22 17:09:16
|
Mike Bresnahan wrote: > I have encountered problems building the latest HtmlUnit sources. > Apparently, a jar file containing the Apache Commons Jelly project is > missing. See below. You'll find that more than just the jelly jar file is missing. If you delete the "com/gargoylesoftware/htmlunit/jelly" directory in the source then everything else will compile fine. The jelly package is still considered "experimental". [For those who are curious, that package includes initial support for xml wrappers for HtmlUnit - be warned that these are untested and unsupported and will likely change] I'm moving towards using maven (http://maven.apache.org) to build the source instead of ant. In the maven model, dependant jars are automatically downloaded from a central repository as needed instead of being stored in source control. At present, if you want to build everything *including* the new jelly package, the easiest way is to use maven. I am planning to change the ant build.xml file so that it will continue to work with the new model but I haven't got that far yet which is why your build is failing. So to summarize.... To compile right now, your options are: 1) Download maven and use that to build. Once you've invoked maven once, the ant build file will start working again as all the requisite jars will have been downloaded. 2) Delete the jelly package and build using ant as before. I realize this is inconvenient - sorry. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <MBr...@go...> - 2003-04-22 16:12:29
|
I have encountered problems building the latest HtmlUnit sources. = Apparently, a jar file containing the Apache Commons Jelly project is = missing. See below. ~/htmlunit: ant Buildfile: build.xml cleancompile: compile: [javac] Compiling 201 source files to = C:\cygwin\home\Administrator\htmlunit\src\java [javac] = C:\cygwin\home\Administrator\htmlunit\src\java\com\gargoylesoftware\htmlu= nit\jelly\AssertContentTypeTag.java:9: package org.apache.commons.jelly = does not exist [javac] import org.apache.commons.jelly.JellyTagException; [javac] ^ |
From: Noboru S. <sh...@le...> - 2003-04-15 12:01:05
|
I revised this patch. the previous one does not support "charset" attribute of script tag. |
From: Noboru S. <sh...@le...> - 2003-04-15 08:53:00
|
Sorry, I forgot to attache file!! On Tue, 15 Apr 2003 17:38:55 +0900 Noboru Sinohara <sh...@le...> wrote: > req id 716568:HtmlPage.loadExternalJavaScriptFile ignore page encoding. > > I made a patch for this problem. > (Sorry, this patch includes the changes for req id 721008.) > > the changes are: > in HtmlPage.loadJavaScriptFromUrl: > it compare the encoding of response for script file and the enconding > of refering page. > if the response encoding is ISO-8859-1 (this means default encoding > and the server might not send charset in content-type header) and > the page encoding is not ISO-8858-1 (this means the encoding was > sent in response header or declared in meta tag), the response body > of script file will be re-read with the encoding of refering page. > WebResponse, HttpWebConnection: > added the features related to get encoding information. > > this is not the best solution. > For example, HttpWebConnection is now depending on HttpMethodBase. > this is not recommended way to use. > But anyway, > this works for me. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > HtmlUnit-develop mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-develop > |
From: Noboru S. <sh...@le...> - 2003-04-15 08:40:14
|
req id 716568:HtmlPage.loadExternalJavaScriptFile ignore page encoding. I made a patch for this problem. (Sorry, this patch includes the changes for req id 721008.) the changes are: in HtmlPage.loadJavaScriptFromUrl: it compare the encoding of response for script file and the enconding of refering page. if the response encoding is ISO-8859-1 (this means default encoding and the server might not send charset in content-type header) and the page encoding is not ISO-8858-1 (this means the encoding was sent in response header or declared in meta tag), the response body of script file will be re-read with the encoding of refering page. WebResponse, HttpWebConnection: added the features related to get encoding information. this is not the best solution. For example, HttpWebConnection is now depending on HttpMethodBase. this is not recommended way to use. But anyway, this works for me. |
From: Mike B. <mb...@Ga...> - 2003-04-13 12:50:12
|
Noboru Sinohara wrote: > if you navigate many pages which has large table parsing each table > data, you will observe remarkable growth of heap size. Thanks for reporting this - I haven't done any profiling on HtmlUnit yet so I'm not really aware of where the bottlenecks are. Please open a bug on this excessive memory usage with as much information as you can provide. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Noboru S. <sh...@le...> - 2003-04-13 10:52:09
|
This may not be the problem of HtmlUnit. But in some cases, this will be the preblem. HtmlTable,HtmlTableRow and other table related classes have getCells or getRows method. these method return an unmodifiableList. this list is refered by private variable of that class. but the private variable only referes to unmodifiableList. So there is no way to free the members of this list. There is another problem in JavaScriptEngine (but this must be the spec of this class ?). in JavaScriptEngine, there is no method to delete the information registerd in pageInfos_. if you navigate many pages which has large table parsing each table data, you will observe remarkable growth of heap size. Regards. Noboru Sinohara |
From: Mike B. <mb...@Ga...> - 2003-03-31 20:25:32
|
I would expect that your code to identify which browser is in use will give you the wrong result. Even though you can specify which browser version you're using, HtmlUnit doesn't fully implement all the browser specific behaviour. Some parts will work, some won't. > HM_DOM = (document.getElementById) ? true : false; > HM_NS4 = (document.layers) ? true : false; > HM_IE = (document.all) ? true : false; > HM_IE4 = HM_IE && !HM_DOM; > HM_Mac = (navigator.appVersion.indexOf("Mac") != -1); > HM_IE4M = HM_IE4 && HM_Mac; > HM_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M)); Off the top of my head... HM_DOM will be true HM_NS4 will be false HM_IE will be true HM_Mac will be false So document.write() should get executed. > The other possibilities are that HM_IsMenu is true but that HtmlUnit > doesn't handle function prototyping like defining trim(), That would be up to the rhino engine and honestly I have no idea if it does or not. I didn't even know you could do that. > or that one > imported Javascript page cannot call a method that resides in another > imported Javascript page. That should work. > JavaScriptException value = ======= EXCEPTION START ======== > EcmaError: lineNumber=[250] column=[0] lineSource=[null] name=[TypeError] > sourceName=[/QRSGUI/rockworld/javascript/AddSelectionCode.js] > message=[undefined is not a function.] errorObject=[TypeError: undefined is > not a function.] What is on line 250 of /QRSGUI/rockworld/javascript/AddSelectionCode.js? Is that the errorCheck() method you included earlier? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: David G. <DGo...@qr...> - 2003-03-31 19:51:21
|
I appear to be getting an error because a Javascript method I'm defining (trim()) is is remaining undefined when called. I've set my web client to IE6 (wc = new WebClient(BrowserVersion.INTERNET_EXPLORER_6_0);). ===== This method is imported into my JSP page: ===== function errorcheck() { var action = document.CT3AForm.ACTION_FLAG.value.trim(); <!-- Error occurs here apparently --> var allErrorCodes = document.CT3AForm.ERROR_CODE.value.trim(); var allErrorMessages = document.CT3AForm.PAGE_ERROR_MESSAGE.value.trim(); } ===== This Javascript from the "HM_Loader.js" file is also imported into my JSP page: ===== HM_DOM = (document.getElementById) ? true : false; HM_NS4 = (document.layers) ? true : false; HM_IE = (document.all) ? true : false; HM_IE4 = HM_IE && !HM_DOM; HM_Mac = (navigator.appVersion.indexOf("Mac") != -1); HM_IE4M = HM_IE4 && HM_Mac; HM_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M)); if(HM_IsMenu) { document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/QRSGUI/rockworld/javascript/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>"); } ===== Now, what may be happening is that the HM_IsMenu variable is false, so document.write is never called. Since document.write is never called, the HM_ScriptIE4.js script import never happens ('IE4' being the value of the HM_BrowserString variable). Since the HM_ScriptIE4.js script import never happens, the following code residing in the HM_ScriptIE4.js file is never imported into the JSP file: ===== String.prototype.trim = HM_f_StringTrim; function HM_f_StringTrim(){ var TestString = this; var SpaceChar = " "; while (TestString.charAt(0) == SpaceChar) {TestString = TestString.substr(1)}; while (TestString.charAt(TestString.length-1) == SpaceChar) {TestString = TestString.substr(0,TestString.length-1)}; return TestString.toString(); } ===== The other possibilities are that HM_IsMenu is true but that HtmlUnit doesn't handle function prototyping like defining trim(), or that one imported Javascript page cannot call a method that resides in another imported Javascript page. The bottom line is that I get the following HtmlUnit error when I get the page: ======= EXCEPTION START ======== Exception class=[org.mozilla.javascript.JavaScriptException] com.gargoylesoftware.htmlunit.ScriptException: com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:196) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:60) at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:87) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 47) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) JavaScriptException value = ======= EXCEPTION START ======== EcmaError: lineNumber=[250] column=[0] lineSource=[null] name=[TypeError] sourceName=[/QRSGUI/rockworld/javascript/AddSelectionCode.js] message=[undefined is not a function.] errorObject=[TypeError: undefined is not a function.] com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:199) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:88) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:252) at inv12.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c170.call(Embedded script:236) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c150.call(/QRSGUI/rockworld/javascript/SelCodeLis t.js:674) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c184.call(body.onLoad:1) at org.mozilla.javascript.gen.c184.exec(body.onLoad) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:60) at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:87) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 47) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) Enclosed exception: TypeError: undefined is not a function. (/QRSGUI/rockworld/javascript/AddSelectionCode.js; line 250) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) at org.mozilla.javascript.NativeGlobal.typeError1(NativeGlobal.java:567) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1182) at org.mozilla.javascript.gen.c283.call(/QRSGUI/rockworld/javascript/AddSelecti onCode.js:250) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c307.call(body.onLoad:1) at org.mozilla.javascript.gen.c307.exec(body.onLoad) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:88) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:252) at inv12.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c170.call(Embedded script:236) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c150.call(/QRSGUI/rockworld/javascript/SelCodeLis t.js:674) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c184.call(body.onLoad:1) at org.mozilla.javascript.gen.c184.exec(body.onLoad) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:60) at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:87) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 47) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) == CALLING JAVASCRIPT == errorcheck(event) ======= EXCEPTION END ======== == CALLING JAVASCRIPT == initPage() ======= EXCEPTION END ======== This all appears to work fine browsing the page with IE5. Thanks a ton if you've gotten to the bottom of this email! -dmg HTML: <script src="/QRSGUI/rockworld/javascript/AddSelectionCode.js"></script> <body bgcolor="#ffffff" leftmargin="0" topmargin="1" marginwidth="0" marginheight="1" onload="errorcheck(event)"> <form name="CT3AForm" method="post" action="/addselectioncode"> Javascript: //to display the error messages function errorcheck() { var action = document.CT3AForm.ACTION_FLAG.value.trim(); <!-- This is line 250, where the error var allErrorCodes = document.CT3AForm.ERROR_CODE.value.trim(); var allErrorMessages = document.CT3AForm.PAGE_ERROR_MESSAGE.value.trim(); } Java error: ======= EXCEPTION START ======== Exception class=[org.mozilla.javascript.JavaScriptException] com.gargoylesoftware.htmlunit.ScriptException: com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:196) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:60) at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:87) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 47) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) JavaScriptException value = ======= EXCEPTION START ======== EcmaError: lineNumber=[250] column=[0] lineSource=[null] name=[TypeError] sourceName=[/QRSGUI/rockworld/javascript/AddSelectionCode.js] message=[undefined is not a function.] errorObject=[TypeError: undefined is not a function.] com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:199) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:88) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:252) at inv12.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c170.call(Embedded script:236) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c150.call(/QRSGUI/rockworld/javascript/SelCodeLis t.js:674) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c184.call(body.onLoad:1) at org.mozilla.javascript.gen.c184.exec(body.onLoad) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:60) at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:87) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 47) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) Enclosed exception: TypeError: undefined is not a function. (/QRSGUI/rockworld/javascript/AddSelectionCode.js; line 250) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) at org.mozilla.javascript.NativeGlobal.typeError1(NativeGlobal.java:567) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1182) at org.mozilla.javascript.gen.c283.call(/QRSGUI/rockworld/javascript/AddSelecti onCode.js:250) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c307.call(body.onLoad:1) at org.mozilla.javascript.gen.c307.exec(body.onLoad) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:88) at com.gargoylesoftware.htmlunit.javascript.host.Form.jsFunction_submit(Form.ja va:252) at inv12.invoke() at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c170.call(Embedded script:236) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c150.call(/QRSGUI/rockworld/javascript/SelCodeLis t.js:674) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c184.call(body.onLoad:1) at org.mozilla.javascript.gen.c184.exec(body.onLoad) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:770) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBodyOnLoadHandlerIfNeeded (HtmlPage.java:900) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:134) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:322) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:242) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:137) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:60) at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:87) at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 47) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) == CALLING JAVASCRIPT == errorcheck(event) ======= EXCEPTION END ======== == CALLING JAVASCRIPT == initPage() ======= EXCEPTION END ======== ======================= David M. Goudreau Senior QA Automation Engineer QRS Corporation 1400 Marina Way South Richmond, CA 94804 USA t: 510-965-4742 f: 510-621-4742 DGo...@qr... http://www.qrs.com ======================= |
From: Mike B. <mb...@Ga...> - 2003-03-31 01:03:17
|
David Goudreau wrote: > <FORM name=formLogin onsubmit="return validateSignin(formLogin)" > method=post action="/QRSGUI/QRS"> The problem is that the name "formLogin" isn't defined in the context of the form. If you had written validateSignin(document.formLogin) or validateSignin(this), I would expect it to work. There is another bug open right now that appears very similar to this. It seems that my understanding of what variables should be visible at what time isn't quite the same as what the browsers are doing. I'm hoping to find a definition of what the scoping *should* be but I haven't found that yet. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: David G. <DGo...@qr...> - 2003-03-30 22:55:47
|
Having a problem logging into a simple login page and don't know why. Here's my code, and TIA: final HtmlForm form = loginPage.getFormByName("formLogin"); assertNotNull(form); final HtmlTextInput network = (HtmlTextInput)form.getInputByName("NETWORK_ID"); network.setValueAttribute(KIBBLES); final HtmlTextInput username = (HtmlTextInput)form.getInputByName("USER_ID"); username.setValueAttribute(KIBBLES); final HtmlPasswordInput password = (HtmlPasswordInput)form.getInputByName("PASSWORD"); password.setValueAttribute(KIBBLES); final HtmlImageInput submit = (HtmlImageInput) form.getInputByName("btnSignin"); // Now submit the form by clicking the button and get to the second page. HtmlPage mainPage = (HtmlPage)submit.click(); assertEquals("SELECTION CODE LIST", mainPage.getTitleText()); My HTML & Javascript is: <FORM name=formLogin onsubmit="return validateSignin(formLogin)" method=post action="/QRSGUI/QRS"> <!-- Basic input fields here --> </FORM> function validateSignin(frmName){ if (checkBrowser()) { if ( (validateField(frmName.NETWORK_ID, "Network ID")) && (validateField(frmName.USER_ID, "User ID")) && (validateField(frmName.PASSWORD, "Password")) ) { return true; } } function checkBrowser(){ var browserOK = browserCheckJS(); if (!browserOK) { alert("QRS Catalogue requires Microsoft\nInternet Explorer 5.5 or greater.\n"); return false; } return browserOK; } Error I'm getting is: ======= EXCEPTION START ======== EcmaError: lineNumber=[1] column=[0] lineSource=[GargoyleWrapper0()] name=[ReferenceError] sourceName=[Wrapper definition for onSubmit] message=["formLogin" is not defined.] errorObject=[ReferenceError: "formLogin" is not defined.] com.gargoylesoftware.htmlunit.ScriptException: "formLogin" is not defined. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:199) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:767) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:106) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:88) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) Enclosed exception: ReferenceError: "formLogin" is not defined. (Wrapper definition for onSubmit; line 1) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1076) at org.mozilla.javascript.gen.c20.call(Wrapper definition for onSubmit:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c22.call(onSubmit:1) at org.mozilla.javascript.gen.c22.exec(onSubmit) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:191) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:767) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:106) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:88) at TestAddSelectionCode.testAddSelectionCode(TestAddSelectionCode.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.start(TestRunner.java:172) at com.intellij.rt.execution.junit.TextTestRunner.main(TextTestRunner.java:12) == CALLING JAVASCRIPT == GargoyleWrapper0() ======= EXCEPTION END ======== -dmg ======================= David M. Goudreau Senior QA Automation Engineer QRS Corporation 1400 Marina Way South Richmond, CA 94804 USA t: 510-965-4742 f: 510-621-4742 DGo...@qr... http://www.qrs.com ======================= |
From: Mike B. <mb...@Ga...> - 2003-03-29 21:50:11
|
HtmlUnit 1.2.2 has been released. I wanted to get one final bug fix release out before starting to check in some experimental pieces. The full change log is at http://htmlunit.sourceforge.net/changes.html -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mb...@Ga...> - 2003-03-26 01:30:39
|
Mabel Chow wrote: > So this would mean that you can support the following statement: > var appletObj = document.applets["My Applet"]; > > But not easily support the following statement because it would mean > supporting applets: > var encodedStr = appletObj.encode("some string"); Pretty much. Little things are certainly possible but full applet support is not a little thing :-) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mabel C. <mc...@ya...> - 2003-03-26 00:50:41
|
--- Mike Bowler <mb...@Ga...> wrote: > Adding support for document.applets wouldn't be much work - actually > supporting applets would be. Certainly not impossible but it would > be a > fair bit of work. So this would mean that you can support the following statement: var appletObj = document.applets["My Applet"]; But not easily support the following statement because it would mean supporting applets: var encodedStr = appletObj.encode("some string"); > I know this isn't what you wanted to hear but I only have so much > spare > time to work on this. :-) Sigh...ok. :-) I'm looking for a web browser testing tool that can be used on UNIX platforms that isn't expensive. Something like XRunner is expensive. Guess it's back to manual testing for now. :-0 __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Mike B. <mb...@Ga...> - 2003-03-25 21:22:50
|
Mabel Chow wrote: > So I assume there is no support for document.applets[]? Right. > My web > application uses a lot of javascript (as you might have guessed by all > the requests) and a hidden applet to get server information. Right now > I can't get very far with using HtmlUnit without applet support. Will > applets be supported in the near future? Open a feature request? Adding support for document.applets wouldn't be much work - actually supporting applets would be. Certainly not impossible but it would be a fair bit of work. Opening a feature request is always the best solution but unless someone else steps up to help, I doubt there will be applet support for quite some time. JavaScript support still needs a lot of work and that seems to be what most people are needing. There are also some other features that I personally need which will get my attention first. I know this isn't what you wanted to hear but I only have so much spare time to work on this. :-) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mabel C. <mc...@ya...> - 2003-03-25 19:29:44
|
In a previous email, I asked about navigator.javaEnabled() and Mike had stubbed a method for it, always returning false because java support is not enabled for HtmlUnit. So I assume there is no support for document.applets[]? My web application uses a lot of javascript (as you might have guessed by all the requests) and a hidden applet to get server information. Right now I can't get very far with using HtmlUnit without applet support. Will applets be supported in the near future? Open a feature request? __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Mike B. <mb...@Ga...> - 2003-03-25 18:44:31
|
Mabel Chow wrote: > My nested table was not well-formed. I forgot to add > a <tr> for my <td> tags. Is there any way of telling htmlunit to be > forgiving of malformed html? Thanks to NekoHTML, it's actually very forgiving of malformed html. It may be that in this particular case NekoHTML guessed wrong when trying to figure out what you'd really meant. Once you've loaded your HtmlPage, if you call page.asXml() you'll get a string containing the document *after* NekoHMTL has cleaned it up. If you compare this version to the content actually returned from the server then you can see what Neko has done. The original html can be retrieved with page.getWebResponse().getContentAsString(). -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mabel C. <mc...@ya...> - 2003-03-25 18:05:10
|
Thanks for adding tags() support. The other variation error was an error on my part. My nested table was not well-formed. I forgot to add a <tr> for my <td> tags. Is there any way of telling htmlunit to be forgiving of malformed html? --- Mike Bowler <mb...@Ga...> wrote: > Mabel Chow wrote: > > I ran into another problem with using > > document.all.tags(). I get a "undefined is not a function", which > is > > referring to tags(). So, the tags method is not supported? > > It wasn't but I've added support for that now. > > > Also, I ran into another variation of the problem, when my html > > contains nested tables (see below). I get an exception > > com.gargoylesoftware.htmlunit.ScriptException: specified cell > could > > not be found in table > > I'm not exactly sure what's causing this one. Let me know if the > tags() > support that I've added fixes this one as well. > > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : mb...@Ga... > Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > HtmlUnit-develop mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-develop __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Teo K. L. <teo...@ho...> - 2003-03-25 08:48:17
|
<blur> can you please provide some partial code describing the solution using XPath? > --__--__-- > > Message: 6 > Date: Mon, 24 Mar 2003 08:55:37 -0500 > From: Mike Bowler <mb...@Ga...> > Organization: Gargoyle Software > To: htm...@li... > Subject: Re: [HtmlUnit] How to get htmltable without table id? > > Christian Sell wrote: > > this raises a question I have had on my mind for a while: > > > > what about specifying elements via XPath? There are XPath > > implementations around that can operate on a standard DOM, so if that > > was accessible (I didnt find it in Htmlunit, but must be around > > somewhere), one could point to any elements via XPath. There are even > > free graphical tools available to create XPath expressions from a web page. > > If I recall correctly, all you need for xpath is a starting node and the > xpath statement itself. You can get the xml node from any HtmlElement > by calling the getElement() method. This can then be used as the > starting element. > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : mb...@Ga... > Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mb...@Ga...> - 2003-03-25 02:32:54
|
Mabel Chow wrote: > I ran into another problem with using > document.all.tags(). I get a "undefined is not a function", which is > referring to tags(). So, the tags method is not supported? It wasn't but I've added support for that now. > Also, I ran into another variation of the problem, when my html > contains nested tables (see below). I get an exception > com.gargoylesoftware.htmlunit.ScriptException: specified cell could > not be found in table I'm not exactly sure what's causing this one. Let me know if the tags() support that I've added fixes this one as well. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Teo K. L. <teo...@ho...> - 2003-03-25 00:56:21
|
Thanks you Mike, i rest my case. cheers! >If I can't reproduce the problem then the changes of being able to >identify the cause is almost zero. I am not willing to violate googles >usage agreement which means that I had no way of reproducing the problem. >> Try this website: http://money.cnn.com/markets/afterhours/ >On this particular site, the problem was that the attribute >location.hostname wasn't implemented. I've fixed that and this url now >loads fine. |
From: Mabel C. <mc...@ya...> - 2003-03-24 19:41:37
|
Mike, thanks for the previous bug fixes. I just got the latest version of the code from cvs today. I ran into another problem with using document.all.tags(). I get a "undefined is not a function", which is referring to tags(). So, the tags method is not supported? I have this small html page. <html> <body> <DIV id='ARSMenuDiv0'></DIV> <script language='Javascript'> var divObj = document.all.tags("div"); </script> </body> </html> Also, I ran into another variation of the problem, when my html contains nested tables (see below). I get an exception com.gargoylesoftware.htmlunit.ScriptException: specified cell could not be found in table <html> <body> <TABLE> <TR> <TD> <div id="DF2"> <table> <td> Submitter</td> <td width="164"> <input type="text" id="F2" name="F2"> </td> </table> </div> </TD> </TR> </TABLE> <script language='Javascript'> var divObj = document.all.tags("div"); </script> </body> </html> __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |