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: Muri J. (K. 11) <jos...@cr...> - 2005-01-26 13:22:07
|
Josef Muri Technology and Services KCDA 11, DMS Java Application Development Galleria P.O. Box 600 CH-8070 Z=FCrich Tel: +41 1 332 81 99 Fax: +41 1 332 44 35 mailto:jos...@cs... <mailto:jos...@cs...>=20 http://www.csfs.com <http://www.csfs.com>=20 |
From: Vladislav S. <vla...@gm...> - 2005-01-22 00:28:59
|
Oh, I see now. So I can use HtmlUnit from any environment that can access the API's (and Java), e.g. Jython. Thank you, David and Mike, for clarifying that. -Vlad On Fri, 21 Jan 2005 19:23:24 -0500, Mike Bowler <mb...@ga...> wrote: > Vladislav Sekulic wrote: > > >Since the htmlunit main page and docs all state that it is intended to > >be used in conjunction with a testing framework "such as JUnit," I was > >wondering if it could be used with other testing frameworks, namely > >PyUnit? > > > > > > HtmlUnit itself is written in Java and all of it's api's are also in > Java. If you can call Java api's from Python then you should be able to > use it from within the Python unit tests. I have no experience here so > I can't say more than that. > > -- > 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: 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: Mike B. <mb...@Ga...> - 2005-01-22 00:23:29
|
Vladislav Sekulic wrote: >Since the htmlunit main page and docs all state that it is intended to >be used in conjunction with a testing framework "such as JUnit," I was >wondering if it could be used with other testing frameworks, namely >PyUnit? > > HtmlUnit itself is written in Java and all of it's api's are also in Java. If you can call Java api's from Python then you should be able to use it from within the Python unit tests. I have no experience here so I can't say more than that. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: David D.K. <ddk...@ki...> - 2005-01-21 18:20:39
|
I don't have any experience with PyUnit or Python-Java bridge frameworks (like Jython), but I don't see why you couldn't use it. Actually, you don't *have* to use Htmlunit with JUnit at all. You could use it with a stand-alone Java project, too. There is really nothing that binds Htmlunit to JUnit, except a desire to write test code for web sites at an end-user level. Dave On Jan 20, 2005, at 5:29 PM, Vladislav Sekulic wrote: > Hi everyone, > > Since the htmlunit main page and docs all state that it is intended to > be used in conjunction with a testing framework "such as JUnit," I was > wondering if it could be used with other testing frameworks, namely > PyUnit? > > Searching the site and mailing list archives yielded no results. > > Thanks for the input. > -Vlad > > > ------------------------------------------------------- > 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: Vladislav S. <vla...@gm...> - 2005-01-20 23:29:53
|
Hi everyone, Since the htmlunit main page and docs all state that it is intended to be used in conjunction with a testing framework "such as JUnit," I was wondering if it could be used with other testing frameworks, namely PyUnit? Searching the site and mailing list archives yielded no results. Thanks for the input. -Vlad |
From: Erskine, C. <chr...@ed...> - 2005-01-20 11:37:04
|
I answered this first on the devel list since Amy sent the request to both lists. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 _____ From: htm...@li... [mailto:htm...@li...] On Behalf Of Erskine, Chris Sent: Wednesday, January 19, 2005 1:00 PM To: htm...@li... Subject: RE: [HtmlUnit] Debugging JavaScript Errors This is not something added to the script but done using a logging package. I use log4j for logging. With log4j, you use a configuration file to enable the logging. It is in this configuration file that you enable the logger for com.gargoylesoftware.htmlunit.javascript. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 _____ From: htm...@li... [mailto:htm...@li...] On Behalf Of Amy Irons Sent: Wednesday, January 19, 2005 11:26 AM To: htm...@li... Subject: [HtmlUnit] Debugging JavaScript Errors Hello, I have been using htmlUnit-1.4 for the last couple of weeks, and I am having difficulty getting good debugging support from it. I would like it to print a specific JavaScript file name and specific line number that is causing an error. I have referenced the JavaScript Engine page and read the section on "Debugging JavaScript Errors". There is the following line that states, "If you set 'com.gargoylesoftware.htmlunit.javascript' to debug level, the inline code will be logged with the wrapper function to help you determine what line of code is failing." Can you explain how I would go about setting this in my test script? Thank you in advance, Amy |
From: David D.K. <ddk...@ki...> - 2005-01-20 05:30:02
|
My guess would be to set it as a system property: System.setProperty("com.gargoylesoft.htmlunit.javascript", "debug"); Note that you could also set it on the command-line when invoking the=20 JVM, but the above Java code should work as well. (I have not tried=20 this feature myself, though.) Dave On Jan 19, 2005, at 12:30 PM, Amy Irons wrote: > Hello, > > I have been using htmlUnit-1.4 for the last couple of weeks, and I am=20= > having difficulty getting good debugging support from it. I would like=20= > it to print a specific JavaScript file name and specific line number=20= > that is causing an error. > > I have referenced the JavaScript Engine page and read the section on=20= > =93Debugging JavaScript Errors=94. There is the following line that=20 > states, =93If you set 'com.gargoylesoftware.htmlunit.javascript' to=20 > debug level, the inline code will be logged with the wrapper function=20= > to help you determine what line of code is failing.=94 > > Can you explain how I would go about setting this in my test script? > > Thank you in advance, > > Amy > |
From: Amy I. <ai...@be...> - 2005-01-19 18:30:02
|
Hello, =20 I have been using htmlUnit-1.4 for the last couple of weeks, and I am having difficulty getting good debugging support from it. I would like it to print a specific JavaScript file name and specific line number that is causing an error. =20 I have referenced the JavaScript Engine page and read the section on "Debugging JavaScript Errors". There is the following line that states, "If you set 'com.gargoylesoftware.htmlunit.javascript' to debug level, the inline code will be logged with the wrapper function to help you determine what line of code is failing." =20 Can you explain how I would go about setting this in my test script? =20 Thank you in advance, =20 Amy =20 =20 |
From: David D.K. <ddk...@ki...> - 2005-01-19 14:19:39
|
David, You'll need to download the source, or check it out from CVS. The test code is not distributed with the htmlunit jar (IIRC). Dave On Jan 19, 2005, at 3:51 AM, Marc Guillemot wrote: > The MockWebConnection can do exactly that. Have a look at htmlunit > unit tests: they use it intensively. > > Marc. > > David Ko wrote: >> Hi, >> I am new to htmlunit. I am wondering if there is a >> work around for me to pass in the html (as String or >> some other form) to WebClient.getPage( ... ) instead >> of passing in a URL. >> At the time of testing I am geneating a html page and >> want to test the form and javascript. What I can do is >> save the content of the html to file and set the URL >> to the saved file and pass it in to >> webclient.getPage(URL). But I would like to avoid >> expensive io :) >> Thanks in advance, >> David > |
From: Marc G. <mgu...@ya...> - 2005-01-19 09:51:38
|
The MockWebConnection can do exactly that. Have a look at htmlunit unit tests: they use it intensively. Marc. David Ko wrote: > Hi, > > I am new to htmlunit. I am wondering if there is a > work around for me to pass in the html (as String or > some other form) to WebClient.getPage( ... ) instead > of passing in a URL. > > At the time of testing I am geneating a html page and > want to test the form and javascript. What I can do is > save the content of the html to file and set the URL > to the saved file and pass it in to > webclient.getPage(URL). But I would like to avoid > expensive io :) > > Thanks in advance, > David |
From: David Ko <dav...@ya...> - 2005-01-19 02:25:00
|
Hi, I am new to htmlunit. I am wondering if there is a work around for me to pass in the html (as String or some other form) to WebClient.getPage( ... ) instead of passing in a URL. At the time of testing I am geneating a html page and want to test the form and javascript. What I can do is save the content of the html to file and set the URL to the saved file and pass it in to webclient.getPage(URL). But I would like to avoid expensive io :) Thanks in advance, David __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com |
From: David D.K. <ddk...@ki...> - 2005-01-17 14:19:03
|
Actually, I've run into web sites that won't parse cookies properly when each cookie is sent in its own header. (They usually look at the first Cookie header and ignore the rest.) The commons-httpclient library has a makeStrict() method on the HttpClientParams class that forces cookies to be sent in one header (among other things). http://jakarta.apache.org/commons/httpclient/3.0/apidocs/org/apache/ commons/httpclient/params/HttpClientParams.html#makeStrict() I've attached a patch that "fixes" this, although I don't think it's a good final solution. IMO, htmlunit should have an API that allows this setting to be turned on and off (perhaps on WebClient?). Dave On Jan 17, 2005, at 2:00 AM, Marc Guillemot wrote: > In fact there are different "types" of cookie transmission. Sending > them as different headers could/should be ok too. I think that this is > a bug of HttpClient.addRequestHeader: as the method name is > "addRequestHeader" and not "setRequestHeader", it should allow to set > many headers with the same name. > > Marc. |
From: Marc G. <mgu...@ya...> - 2005-01-17 08:00:23
|
In fact there are different "types" of cookie transmission. Sending them as different headers could/should be ok too. I think that this is a bug of HttpClient.addRequestHeader: as the method name is "addRequestHeader" and not "setRequestHeader", it should allow to set many headers with the same name. Marc. |
From: Lodge, G. <Gar...@ac...> - 2005-01-14 22:50:45
|
Ok. I'll shut up. Brad was right about hte rhino version. My version was not *cough*there*cough* up to date. I commented out the include of the js.jar in my build script while migrating everything and updating versions. Forgot to um *scratches head embarrassingly* uncomment it. Sorry for wasting space on your email list. Continue blazing forward with excellent code. By the way, maven is cool. WIsh we used that instead. Might have avoided this. FWIW: trying to get the lastest from CVS: >cvs -d:pserver:ano...@cv...:/cvsroot/htmlunit login (Logging in to ano...@cv...) CVS password: cvs [login aborted]: connect to cvs.sourceforge.net:2401 failed: Connection timed out |
From: Brehm, R. P <rob...@of...> - 2005-01-14 21:07:00
|
Marc, After reading RFC2109-Http State Management Mechanism-I now realize that there may be multiple name-value pairs per cookie. Please disregard my below question. Regards, Bob -----Original Message----- From: Brehm, Robert P Sent: Friday, January 14, 2005 11:30 AM To: 'htm...@li...' Subject: RE: [Htmlunit-user] Cookie Support Marc, Thanks for the reply. Yes, the below does work to send up a single cookie. I created a Cookie instsance then used its toString() method to get the value before invoking addRequestHeader. That is a great help. However, in my app I have to send up multiple cookies - unfortunately all cookies share the same name and therefore addRequestHeader overwrites all Cookie name-value pairs except the last. Is there another feature that might help here? Regs, Bob -----Original Message----- From: htm...@li... [mailto:htm...@li...]On Behalf Of Marc Guillemot Sent: Friday, January 14, 2005 12:43 AM To: htm...@li... Subject: Re: [Htmlunit-user] Cookie Support Have you tried WebClient.addRequestHeader? Marc. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Erskine, C. <chr...@ed...> - 2005-01-14 20:17:05
|
Since there is not enough detail to show what is failing, I would try stripping pieces of code out until you can find the JavaScript which is failing. What are you doing with HtmlUnit code? Is this to run some automated testing? Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 > -----Original Message----- > From: htm...@li... [mailto:htmlunit-user- > ad...@li...] On Behalf Of Lodge, Gary > Sent: Friday, January 14, 2005 11:36 AM > To: 'htm...@li...' > Subject: [Htmlunit-user] Re: javascript Verify error? > > I think Brad was right because I downloaded the htmlunit source, mavened > the > hell out of it and got it to update all the jars and such. This allowed my > tests to get past the first page, but now they're failing with this block > of > javascript Any ideas? (JDK 1.4.1, can't run out of websphere, can't > disable > javascript beacuse this app is huge--200+ pages times several clients--and > it's dependent on JS): > > BTW: onloadfunctions does some funky stuph: > window.onload = function(){setTimeout("onloadcalls()",1)}; > > function onloadcalls(){ > eval(onloadfunctions) > pageLoaded = true; > } > > > > var onloadfunctions = "" > var pageLoaded = false; > > > var limit="30:00" > if (document.images) > { > var parselimit=limit.split(":") > parselimit=parselimit[0]*60+parselimit[1]*1 > } > > onloadfunctions += "setFocusScript();loadRows();begintimer();" > > function newWindowFunction(menuId,link) > { > > window.open("http://rodan:8080/msx_br_lodgeg/servlet/com.covansys.navigati > on > .NavigationServlet?j_btn_text_link="+link,"","alw\ > aysRaised,height=300,width=800,resizable"); > return; > } > > function submitSort(sortBy) > { > document.forms[1].sortKey.value=sortBy; > submitStrutsLink("sort"); > } > > function submitPage(pageDirection) > { > document.forms[1].direction.value=pageDirection; > submitStrutsLink("page"); > } > > function submitStrutsLink(forwardName) > { > document.forms[1].relayTo.value=forwardName; > document.forms[1].submit(); > }] > sourceName [Embedded script] > lineNumber [1] > securityDomain [null] > > > and this exception > > java.lang.NoSuchMethodError: > org.mozilla.javascript.NativeArray.getLength()J > [echo] at > com.gargoylesoftware.htmlunit.javascript.host.Document.get(Document.java:6 > 51 > ) > [echo] at org.mozilla.javascript.ScriptRuntime.getProp(Unknown > Source) > [echo] at org.mozilla.javascript.Interpreter.interpret(Unknown > Source) > [echo] at org.mozilla.javascript.InterpretedScript.call(Unknown > Source) > [echo] at org.mozilla.javascript.InterpretedScript.exec(Unknown > Source) > [echo] at org.mozilla.javascript.Context.evaluateReader(Unknown > Source) > [echo] at org.mozilla.javascript.Context.evaluateString(Unknown > Source) > [echo] at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScri > pt > Engine.java:295) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Ht > ml > Page.java:712) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlSc > ri > pt.java:209) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlScript.appendChild(HtmlScript.java: > 16 > 8) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCha > ra > cters(HTMLParser.java:415) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElemen > t( > HTMLParser.java:379) > [echo] at > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > [echo] at > org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249 > ) > [echo] at > org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:101 > 5) > [echo] at > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888) > [echo] at > org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2767) > [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(HTM > LP > arser.java:334) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:258) > [echo] at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPag > eC > reator.java:115) > [echo] at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCre > at > 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:444) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:185) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageI > np > ut.java:119) > [echo] at > com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement > .j > ava:120) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.jav > a: > 142) > [echo] at > com.benova.acceptancetest.CxAcceptanceTest.clickImageButtonByName(CxAccept > an > ceTest.java:348) > [echo] at > com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:1 > 73 > 3) > [echo] at > com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.getToSupe > rv > isorHOHApprovalPage(MSAbstractSupe\ > rvisorApprovalAcceptanceTest.java:518) > [echo] at > com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.getToGrou > pD > etailFromHOH(MSAbstractSupervisorA\ > pprovalAcceptanceTest.java:574) > [echo] at > com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testVie > wR > eadOnlyDetailsPage(MSSupervisorApp\ > rovalViewDetailAcceptanceTest.java:61) > [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [echo] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39 > ) > [echo] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > pl > .java:25) > > > Brad said>>>> > From the stack it looks like you might have the wrong rhino jar. > System.getProperties() might tell you a bit more about your classpath but > it"s going > to be a mess with the large number of websphere and htmlunit > dependencies. > Can you > run the test outside of websphere? Does disabling javascript help? What > JDK > version > are you using? > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Brad C. <yo...@br...> - 2005-01-14 19:55:45
|
This is listed as a change since 1.4: JavaScript: Fixed bug in window.frames[i] (was introduced in 1.4). Can you get the latest CVS and see if that fixes your problem? Brad C --- "Lodge, Gary" <Gar...@ac...> wrote: > I think Brad was right because I downloaded the htmlunit source, mavened the > hell out of it and got it to update all the jars and such. This allowed my > tests to get past the first page, but now they're failing with this block of > javascript Any ideas? (JDK 1.4.1, can't run out of websphere, can't disable > javascript beacuse this app is huge--200+ pages times several clients--and > it's dependent on JS): > > BTW: onloadfunctions does some funky stuph: > window.onload = function(){setTimeout("onloadcalls()",1)}; > > function onloadcalls(){ > eval(onloadfunctions) > pageLoaded = true; > } > > > > var onloadfunctions = "" > var pageLoaded = false; > > > var limit="30:00" > if (document.images) > { > var parselimit=limit.split(":") > parselimit=parselimit[0]*60+parselimit[1]*1 > } > > onloadfunctions += "setFocusScript();loadRows();begintimer();" > > function newWindowFunction(menuId,link) > { > > window.open("http://rodan:8080/msx_br_lodgeg/servlet/com.covansys.navigation > .NavigationServlet?j_btn_text_link="+link,"","alw\ > aysRaised,height=300,width=800,resizable"); > return; > } > > function submitSort(sortBy) > { > document.forms[1].sortKey.value=sortBy; > submitStrutsLink("sort"); > } > > function submitPage(pageDirection) > { > document.forms[1].direction.value=pageDirection; > submitStrutsLink("page"); > } > > function submitStrutsLink(forwardName) > { > document.forms[1].relayTo.value=forwardName; > document.forms[1].submit(); > }] > sourceName [Embedded script] > lineNumber [1] > securityDomain [null] > > > and this exception > > java.lang.NoSuchMethodError: > org.mozilla.javascript.NativeArray.getLength()J > [echo] at > com.gargoylesoftware.htmlunit.javascript.host.Document.get(Document.java:651 > ) > [echo] at org.mozilla.javascript.ScriptRuntime.getProp(Unknown > Source) > [echo] at org.mozilla.javascript.Interpreter.interpret(Unknown > Source) > [echo] at org.mozilla.javascript.InterpretedScript.call(Unknown > Source) > [echo] at org.mozilla.javascript.InterpretedScript.exec(Unknown > Source) > [echo] at org.mozilla.javascript.Context.evaluateReader(Unknown > Source) > [echo] at org.mozilla.javascript.Context.evaluateString(Unknown > Source) > [echo] at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript > Engine.java:295) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html > Page.java:712) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScri > pt.java:209) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlScript.appendChild(HtmlScript.java:16 > 8) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleChara > cters(HTMLParser.java:415) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement( > HTMLParser.java:379) > [echo] at > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) > [echo] at > org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249) > [echo] at > org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015) > [echo] at > org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888) > [echo] at > org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2767) > [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:444) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:185) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp > ut.java:119) > [echo] at > com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.j > ava:120) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: > 142) > [echo] at > com.benova.acceptancetest.CxAcceptanceTest.clickImageButtonByName(CxAcceptan > ceTest.java:348) > [echo] at > com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:173 > 3) > [echo] at > com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.getToSuperv > isorHOHApprovalPage(MSAbstractSupe\ > rvisorApprovalAcceptanceTest.java:518) > [echo] at > com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.getToGroupD > etailFromHOH(MSAbstractSupervisorA\ > pprovalAcceptanceTest.java:574) > [echo] at > com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testViewR > eadOnlyDetailsPage(MSSupervisorApp\ > rovalViewDetailAcceptanceTest.java:61) > [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) > > > Brad said>>>> > From the stack it looks like you might have the wrong rhino jar. > System.getProperties() might tell you a bit more about your classpath but > it"s going > to be a mess with the large number of websphere and htmlunit dependencies. > Can you > run the test outside of websphere? Does disabling javascript help? What JDK > version > are you using? > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Brehm, R. P <rob...@of...> - 2005-01-14 19:31:13
|
Marc, Thanks for the reply. Yes, the below does work to send up a single cookie. I created a Cookie instsance then used its toString() method to get the value before invoking addRequestHeader. That is a great help. However, in my app I have to send up multiple cookies - unfortunately all cookies share the same name and therefore addRequestHeader overwrites all Cookie name-value pairs except the last. Is there another feature that might help here? Regs, Bob -----Original Message----- From: htm...@li... [mailto:htm...@li...]On Behalf Of Marc Guillemot Sent: Friday, January 14, 2005 12:43 AM To: htm...@li... Subject: Re: [Htmlunit-user] Cookie Support Have you tried WebClient.addRequestHeader? Marc. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Lodge, G. <Gar...@ac...> - 2005-01-14 18:36:12
|
I think Brad was right because I downloaded the htmlunit source, mavened the hell out of it and got it to update all the jars and such. This allowed my tests to get past the first page, but now they're failing with this block of javascript Any ideas? (JDK 1.4.1, can't run out of websphere, can't disable javascript beacuse this app is huge--200+ pages times several clients--and it's dependent on JS): BTW: onloadfunctions does some funky stuph: window.onload = function(){setTimeout("onloadcalls()",1)}; function onloadcalls(){ eval(onloadfunctions) pageLoaded = true; } var onloadfunctions = "" var pageLoaded = false; var limit="30:00" if (document.images) { var parselimit=limit.split(":") parselimit=parselimit[0]*60+parselimit[1]*1 } onloadfunctions += "setFocusScript();loadRows();begintimer();" function newWindowFunction(menuId,link) { window.open("http://rodan:8080/msx_br_lodgeg/servlet/com.covansys.navigation .NavigationServlet?j_btn_text_link="+link,"","alw\ aysRaised,height=300,width=800,resizable"); return; } function submitSort(sortBy) { document.forms[1].sortKey.value=sortBy; submitStrutsLink("sort"); } function submitPage(pageDirection) { document.forms[1].direction.value=pageDirection; submitStrutsLink("page"); } function submitStrutsLink(forwardName) { document.forms[1].relayTo.value=forwardName; document.forms[1].submit(); }] sourceName [Embedded script] lineNumber [1] securityDomain [null] and this exception java.lang.NoSuchMethodError: org.mozilla.javascript.NativeArray.getLength()J [echo] at com.gargoylesoftware.htmlunit.javascript.host.Document.get(Document.java:651 ) [echo] at org.mozilla.javascript.ScriptRuntime.getProp(Unknown Source) [echo] at org.mozilla.javascript.Interpreter.interpret(Unknown Source) [echo] at org.mozilla.javascript.InterpretedScript.call(Unknown Source) [echo] at org.mozilla.javascript.InterpretedScript.exec(Unknown Source) [echo] at org.mozilla.javascript.Context.evaluateReader(Unknown Source) [echo] at org.mozilla.javascript.Context.evaluateString(Unknown Source) [echo] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:295) [echo] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:712) [echo] at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScri pt.java:209) [echo] at com.gargoylesoftware.htmlunit.html.HtmlScript.appendChild(HtmlScript.java:16 8) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleChara cters(HTMLParser.java:415) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement( HTMLParser.java:379) [echo] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) [echo] at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249) [echo] at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015) [echo] at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888) [echo] at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2767) [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:444) [echo] at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:185) [echo] at com.gargoylesoftware.htmlunit.html.HtmlImageInput.doClickAction(HtmlImageInp ut.java:119) [echo] at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.j ava:120) [echo] at com.gargoylesoftware.htmlunit.html.HtmlImageInput.click(HtmlImageInput.java: 142) [echo] at com.benova.acceptancetest.CxAcceptanceTest.clickImageButtonByName(CxAcceptan ceTest.java:348) [echo] at com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:173 3) [echo] at com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.getToSuperv isorHOHApprovalPage(MSAbstractSupe\ rvisorApprovalAcceptanceTest.java:518) [echo] at com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.getToGroupD etailFromHOH(MSAbstractSupervisorA\ pprovalAcceptanceTest.java:574) [echo] at com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testViewR eadOnlyDetailsPage(MSSupervisorApp\ rovalViewDetailAcceptanceTest.java:61) [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) Brad said>>>> From the stack it looks like you might have the wrong rhino jar. System.getProperties() might tell you a bit more about your classpath but it"s going to be a mess with the large number of websphere and htmlunit dependencies. Can you run the test outside of websphere? Does disabling javascript help? What JDK version are you using? |
From: Marc G. <mgu...@ya...> - 2005-01-14 08:43:16
|
Have you tried WebClient.addRequestHeader? Marc. |
From: Brad C. <yo...@br...> - 2005-01-14 00:06:54
|
From the stack it looks like you might have the wrong rhino jar. System.getProperties() might tell you a bit more about your classpath but it's going to be a mess with the large number of websphere and htmlunit dependencies. Can you run the test outside of websphere? Does disabling javascript help? What JDK version are you using? --- "Lodge, Gary" <Gar...@ac...> wrote: > hello, > > I am working on upgrading to 1.4 from pre1.3. When I run my tests, I get a > parsing error now with javascript. I think this is an example of the > offending code: > > <BODY bgcolor="#FFFFFF" topmargin="2" onKeyDown="return doKeyDown(event);"> > > If I ermove the [onKeyDown="return doKeyDown(event);] chunk, I get the same > error further into the page with other script. > > The html validation provided webClient.setValidateHtml(true) comes back with > only two errors: > .[Error] :22:73: No Java character encoding mapping for IANA character > encoding "iso-8859-1". > [echo] [Error] :10:65: DOCTYPE declaration found inside document > content. > > I am wondering if this is a third-party package conflict sort of thing. > Running websphere5.1. Xerces versions? Is there an easy way to tell which I > am running. Our environment is vast. > > > stack below: > > > [echo] 2) > testViewReadOnlyDetailsPageRedet(com.ms.acceptancetest.MSSupervisorApprovalV > iewDetailAcceptanceTest) > [echo] com.gargoylesoftware.htmlunit.ObjectInstantiationException: > Exception when calling constructor [public > com.gargoylesoftware.htmlunit.html.HtmlForm(com.gargoylesoftware.htmlunit.ht > ml.HtmlPage,java.util.Map)] > [echo] at > com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau > ltElementFactory.java:112) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen > t(HTMLParser.java:369) > [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:349) > [echo] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) > [echo] at > com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:169 > 1) > [echo] at > com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.doSuperviso > rLogin(MSAbstractSupervisorApprovalAcceptanceTest.java:654) > [echo] at > com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testViewR > eadOnlyDetailsPageRedet(MSSupervisorApprovalViewDetailAcceptanceTest.java:10 > 2) > [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) > [echo] Enclosed exception: java.lang.VerifyError: (class: > com/gargoylesoftware/htmlunit/javascript/host/EventHandler, method: get > signature: > (Ljava/lang/String;Lorg/mozilla/javascript/Scriptable;)Ljava/lang/Object;) > Illegal use of nonvirtual function call > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlElement.setEventHandler(HtmlElement.j > ava:237) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlElement.attributesToEventHandlers(Htm > lElement.java:590) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlElement.<init>(HtmlElement.java:96) > [echo] at > com.gargoylesoftware.htmlunit.html.StyledElement.<init>(StyledElement.java:6 > 2) > [echo] at > com.gargoylesoftware.htmlunit.html.ClickableElement.<init>(ClickableElement. > java:73) > [echo] at > com.gargoylesoftware.htmlunit.html.HtmlForm.<init>(HtmlForm.java:86) > [echo] at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > [echo] at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces > sorImpl.java:39) > [echo] at > java.lang.reflect.Constructor.newInstance(Constructor.java:274) > [echo] at > com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau > ltElementFactory.java:100) > [echo] at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen > t(HTMLParser.java:369) > [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:349) > [echo] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) > [echo] at > com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:169 > 1) > [echo] at > com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.doSuperviso > rLogin(MSAbstractSupervisorApprovalAcceptanceTest.java:654) > [echo] at > com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testViewR > eadOnlyDetailsPageRedet(MSSupervisorApprovalViewDetailAcceptanceTest.java:10 > 2) > [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [echo] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Brehm, R. P <rob...@of...> - 2005-01-13 23:05:56
|
What I was trying to do is to create cookies before connecting to the application. The below code returns a null state if try to set the cookie before invoking webClient.getPage which makes sense because there can be no connection state prior to a connection being made. Therefore cookies cannot be created beforehand. I will have to approach this from another angle. Thanks for the reply, Bob Brehm -----Original Message----- From: htm...@li... [mailto:htm...@li...]On Behalf Of Brad Clarke Sent: Thursday, January 13, 2005 10:27 AM To: htm...@li... Subject: Re: [Htmlunit-user] Cookie Support The HttpClient is hidden away on purpose. I'm not sure I exactly understand what you're doing but would this help? WebClient.getWebConnection().getStateForUrl(new URL("http://mysite.com/").addCookie(Cookie) --- "Brehm, Robert P" <rob...@of...> wrote: > All, > > I want to create a cookie and then associate it the WebConnection's state. In > order to do this I believe that I need to do this by calling HttpClient's setState > method (HttpClient is a class in commons-httpClient). I have scoured the > HtmlUnit javadocs, and I have not found any way to get a reference to HttpClient. > Any suggestions on how to create and set a cookie from HtmlUnit would be > appreciated. > > Best regards, > > Bob Brehm > Software Engineer > Xerox Corporation > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Lodge, G. <Gar...@ac...> - 2005-01-13 22:41:17
|
hello, I am working on upgrading to 1.4 from pre1.3. When I run my tests, I get a parsing error now with javascript. I think this is an example of the offending code: <BODY bgcolor="#FFFFFF" topmargin="2" onKeyDown="return doKeyDown(event);"> If I ermove the [onKeyDown="return doKeyDown(event);] chunk, I get the same error further into the page with other script. The html validation provided webClient.setValidateHtml(true) comes back with only two errors: .[Error] :22:73: No Java character encoding mapping for IANA character encoding "iso-8859-1". [echo] [Error] :10:65: DOCTYPE declaration found inside document content. I am wondering if this is a third-party package conflict sort of thing. Running websphere5.1. Xerces versions? Is there an easy way to tell which I am running. Our environment is vast. stack below: [echo] 2) testViewReadOnlyDetailsPageRedet(com.ms.acceptancetest.MSSupervisorApprovalV iewDetailAcceptanceTest) [echo] com.gargoylesoftware.htmlunit.ObjectInstantiationException: Exception when calling constructor [public com.gargoylesoftware.htmlunit.html.HtmlForm(com.gargoylesoftware.htmlunit.ht ml.HtmlPage,java.util.Map)] [echo] at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau ltElementFactory.java:112) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen t(HTMLParser.java:369) [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:349) [echo] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) [echo] at com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:169 1) [echo] at com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.doSuperviso rLogin(MSAbstractSupervisorApprovalAcceptanceTest.java:654) [echo] at com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testViewR eadOnlyDetailsPageRedet(MSSupervisorApprovalViewDetailAcceptanceTest.java:10 2) [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) [echo] Enclosed exception: java.lang.VerifyError: (class: com/gargoylesoftware/htmlunit/javascript/host/EventHandler, method: get signature: (Ljava/lang/String;Lorg/mozilla/javascript/Scriptable;)Ljava/lang/Object;) Illegal use of nonvirtual function call [echo] at com.gargoylesoftware.htmlunit.html.HtmlElement.setEventHandler(HtmlElement.j ava:237) [echo] at com.gargoylesoftware.htmlunit.html.HtmlElement.attributesToEventHandlers(Htm lElement.java:590) [echo] at com.gargoylesoftware.htmlunit.html.HtmlElement.<init>(HtmlElement.java:96) [echo] at com.gargoylesoftware.htmlunit.html.StyledElement.<init>(StyledElement.java:6 2) [echo] at com.gargoylesoftware.htmlunit.html.ClickableElement.<init>(ClickableElement. java:73) [echo] at com.gargoylesoftware.htmlunit.html.HtmlForm.<init>(HtmlForm.java:86) [echo] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [echo] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) [echo] at java.lang.reflect.Constructor.newInstance(Constructor.java:274) [echo] at com.gargoylesoftware.htmlunit.html.DefaultElementFactory.createElement(Defau ltElementFactory.java:100) [echo] at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElemen t(HTMLParser.java:369) [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:349) [echo] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) [echo] at com.ms.acceptancetest.MSCxAcceptanceTest.doLogin(MSCxAcceptanceTest.java:169 1) [echo] at com.ms.acceptancetest.MSAbstractSupervisorApprovalAcceptanceTest.doSuperviso rLogin(MSAbstractSupervisorApprovalAcceptanceTest.java:654) [echo] at com.ms.acceptancetest.MSSupervisorApprovalViewDetailAcceptanceTest.testViewR eadOnlyDetailsPageRedet(MSSupervisorApprovalViewDetailAcceptanceTest.java:10 2) [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) |
From: Brad C. <yo...@br...> - 2005-01-13 18:27:18
|
The HttpClient is hidden away on purpose. I'm not sure I exactly understand what you're doing but would this help? WebClient.getWebConnection().getStateForUrl(new URL("http://mysite.com/").addCookie(Cookie) --- "Brehm, Robert P" <rob...@of...> wrote: > All, > > I want to create a cookie and then associate it the WebConnection's state. In > order to do this I believe that I need to do this by calling HttpClient's setState > method (HttpClient is a class in commons-httpClient). I have scoured the > HtmlUnit javadocs, and I have not found any way to get a reference to HttpClient. > Any suggestions on how to create and set a cookie from HtmlUnit would be > appreciated. > > Best regards, > > Bob Brehm > Software Engineer > Xerox Corporation > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Brehm, R. P <rob...@of...> - 2005-01-13 17:03:55
|
All, I want to create a cookie and then associate it the WebConnection's state. In order to do this I believe that I need to do this by calling HttpClient's setState method (HttpClient is a class in commons-httpClient). I have scoured the HtmlUnit javadocs, and I have not found any way to get a reference to HttpClient. Any suggestions on how to create and set a cookie from HtmlUnit would be appreciated. Best regards, Bob Brehm Software Engineer Xerox Corporation |