From: Brian K. <bt...@ne...> - 2002-07-10 16:42:15
|
Thanks for the info.... I am trying out htmlunit 1.1pre1 right now and = am experiencing some issues. If I disable javascript all seems to work = fine, but if I turn it on and request the same page I get the following = error: Error loading javascript: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not = Found at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:266) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:156) at = com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPag= e.java:714) at = com.gargoylesoftware.htmlunit.html.HtmlPage.executeScriptTagsIfNeeded(Htm= lPage.java:703) at = com.gargoylesoftware.htmlunit.html.HtmlPage.<init>(HtmlPage.java:101) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:269) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:156) at com.nextjet.htmlunit.HtmlTest.testLoginPage(HtmlTest.java:31) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) 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:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at junit.swingui.TestRunner$17.run(TestRunner.java:644) Thanks, Brian Hi Brian, =20 > Have you considered utilizing rhino for your javascript support? =20 That is what I am using :-) =20 Rhino implements the core javascript language for me - the part that I=20 have to implement are all the browser specific host objects. Things=20 like window, document, location etc. =20 > Also have you seen the new WATF (Web Application Testing Framework)? =20 I heard about it for the first time a couple of days ago but haven't = had=20 a chance to look at it yet. =20 > any idea of when full support will be available? =20 I expect that within the next couple of weeks, all of the most commonly = used bits (excepting document.write() - see below) will be supported.=20 If there are specific methods/properties that you need that haven't=20 been implemented then please open a feature request on sourceforge. =20 The goal of 1.1 is to support the subset of host objects that are used=20 by the majority of websites. =20 =20 It will likely be quite some time before EVERY javascript host object = is=20 fully supported but since most sites use a relatively small subset, = this=20 shouldn't be a problem. =20 Document.write() will likely not appear until 1.2 as I'm thinking it=20 will require some significant changes to the way I load the documents.=20 Of course if enough people tell me that they can't live without this=20 function then priorities will change ;-) =20 --=20 Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: <http://www.GargoyleSoftware.com> =20 |