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: Benjamin T. <tho...@ya...> - 2003-10-27 16:32:38
|
I am attempting to write a test case for a page that contains a = javascript.confirm() as part of the logic. The page branches one way if = the user clicks "ok", and another if they click "cancel". Is there a way = to not only to capture the confirm dialog, but also to effect clicking = on a button?=20 Thanks! Ben |
From: Oscar P. <opi...@vi...> - 2003-10-21 22:31:24
|
Hi, I try to get an HtmlPage by following a link that has an onClick attribute but I get an Exception. If I follow the link with a browser I have no problem. The link is inside a form named "f_search" and "type_field" is the name of a hidden field inside the form (see HtmlAnchor in the trace). I try to run the following code: public static void main(String[] args) throws FailingHttpStatusCodeException, IOException { WebClient client = new WebClient(BrowserVersion.FULL_FEATURED_BROWSER); client.setRedirectEnabled(true); System.out.println("javascript enabled: " + client.isJavaScriptEnabled()); URL url = new URL("http://myhost/index.html"); HtmlPage enterPoint = (HtmlPage) client.getPage(url); HtmlAnchor submit = (HtmlAnchor) enterPoint.getAnchors().get(44); System.out.println(submit); HtmlPage result = (HtmlPage) submit.click(); } But here is what I get in the console: javascript enabled: true Oct 21, 2003 2:26:53 PM org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled Oct 21, 2003 2:26:53 PM org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled HtmlAnchor[<a href="javascript:document.f_search.submit();" onclick="document.f_search.type_field.value='RESULTS'; return(val_form());">] Exception in thread "main" ======= EXCEPTION START ======== EcmaError: lineNumber=[14] column=[0] lineSource=[null] name=[ConversionError] sourceName=[Embedded script] message=[The undefined value has no properties.] errorObject=[ConversionError: The undefined value has no properties.] com.gargoylesoftware.htmlunit.ScriptException: The undefined value has no properties. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:250) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:886) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85) at org.xenata.criq.Criq.main(Criq.java:37) Enclosed exception: ConversionError: The undefined value has no properties. (Embedded script; line 14) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:712) at org.mozilla.javascript.gen.c4.call(Embedded script:14) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c27.call(Wrapper definition for onClick handler:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c29.call(onClick handler:1) at org.mozilla.javascript.gen.c29.exec(onClick handler) 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(JavaScriptEngine.java:242) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:886) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85) at org.xenata.criq.Criq.main(Criq.java:37) == CALLING JAVASCRIPT == GargoyleWrapper0() ======= EXCEPTION END ======== What's the problem? Oscar |
From: Raj W. <rw...@id...> - 2003-10-20 16:32:59
|
SXMgdGhlcmUgYSB2ZXJzaW9uIG9mIEh0bWx1bml0IHRoYXQgd2lsbCB3b3JrIHdpdGggWGVyY2Vz IDEuNC4zPw0KSSdkIHJlYWxseSByZWFsbHkgYXBwcmVjaWF0ZSBzb21lIGFkdmlzZSB3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oIGh0bWx1bml0IGFuZCB0aGUgd2ViYXBwIHRvIHdvcmsgdG9nZXRoZXI/ ICANCg0KV291bGQgcmVhbGx5IGFwcHJlY2lhdGUgc29tZSBoZWxwLg0KDQogDQoNClRoYW5rcw0K DQpSYWoNCg0KIA0KDQo= |
From: Mike B. <mb...@Ga...> - 2003-10-14 19:48:06
|
Raj Wagle wrote: > In my code, I'm enabling redirect using: > > myWebClient.setRedirectEnabled(true); > > Why am I still seeing the following message: > [INFO] HttpMethodBase - -Redirect requested but followRedirects is > disabled FAQ: http://htmlunit.sourceforge.net/faq.html > Also, is there some way I can see the raw HTTP requests and responses > that are being sent back and forth? Do they get logged some place? It's possible to get commons-httpclient to dump the requests/responses to the log but I'm not sure of the exact flag to turn on. I personally use a packet sniffer when I want to look at the traffic. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Raj W. <rw...@id...> - 2003-10-14 19:38:26
|
SW4gbXkgY29kZSwgSSdtIGVuYWJsaW5nIHJlZGlyZWN0IHVzaW5nOg0KIA0KbXlXZWJDbGllbnQu c2V0UmVkaXJlY3RFbmFibGVkKHRydWUpOw0KIA0KV2h5IGFtIEkgc3RpbGwgc2VlaW5nIHRoZSBm b2xsb3dpbmcgbWVzc2FnZToNCltJTkZPXSBIdHRwTWV0aG9kQmFzZSAtIC1SZWRpcmVjdCByZXF1 ZXN0ZWQgYnV0IGZvbGxvd1JlZGlyZWN0cyBpcyBkaXNhYmxlZA0KIA0KQWxzbywgaXMgdGhlcmUg c29tZSB3YXkgSSBjYW4gc2VlIHRoZSByYXcgSFRUUCByZXF1ZXN0cyBhbmQgcmVzcG9uc2VzIHRo YXQgYXJlIGJlaW5nIHNlbnQgYmFjayBhbmQgZm9ydGg/ICBEbyB0aGV5IGdldCBsb2dnZWQgc29t ZSBwbGFjZT8NCiANClRoYW5rcw0KUmFqDQogDQo= |
From: Mike B. <mb...@Ga...> - 2003-10-14 18:37:25
|
Mike Bowler wrote: > I'll look into that later this morning - it doesn't look very > good if HtmlUnit can't parse it's own homepage ;-) Fixed now. The problem had to do with the javascript generated Google ads. -- 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-10-14 17:34:29
|
BARAHONA,JESUS (HP-Spain,ex2) wrote: > The problem comes when i load with htmlUnit my main page that has > frames. The problem comes when one of these frames call a JavaScript > function when it loads (with <body onLoad="myFunction(x, y, z)"). > myFunction is defined in a external file .js and i think the problem > is when this function executes "parent.nav.document ....". The undefined part is "nav" which I assume is the name of one of the frames - is that correct? The frameset doesn't appear to be supporting referencing the individual frames by name. Please open a bug for this. -- 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-10-14 17:10:15
|
Raj Wagle wrote: > If a page is sent without the "Content-Type" response header, but is specified as follows: > <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5"> > > seems either htmlunit or httpclient is unable to handle it correctly. > > The page gets returned as "UnexpectedPage". > Any thoughts? I thought that commons-httpclient would take care of this automatically - I remember discussions about this on their mailing list a while ago. To work around this, you could register a custom PageCreator with the WebClient. Please open a bug report for this. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Raj W. <rw...@id...> - 2003-10-14 16:37:17
|
SWYgYSBwYWdlIGlzIHNlbnQgd2l0aG91dCB0aGUgIkNvbnRlbnQtVHlwZSIgcmVzcG9uc2UgaGVh ZGVyLCBidXQgaXMgc3BlY2lmaWVkIGFzIGZvbGxvd3M6DQo8TUVUQSBodHRwLWVxdWl2PSJDb250 ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1JU08tODg1OS01Ij4gDQogDQpz ZWVtcyBlaXRoZXIgaHRtbHVuaXQgb3IgaHR0cGNsaWVudCBpcyB1bmFibGUgdG8gaGFuZGxlIGl0 IGNvcnJlY3RseS4NCiANClRoZSBwYWdlIGdldHMgcmV0dXJuZWQgYXMgIlVuZXhwZWN0ZWRQYWdl Ii4NCkFueSB0aG91Z2h0cz8NCiANClRoYW5rcw0KUmFqDQogDQo= |
From: Mike B. <mb...@Ga...> - 2003-10-14 12:56:31
|
BARAHONA,JESUS (HP-Spain,ex2) wrote: > I've begun with htmlUnit two weeks ago and i'm having problems when i > try to load a page with JavaScript. > I've been debugging and i think the problem is when trying to access > to the parent of a frame with Javascript "parent.nav.document". > I get the same error if i try to load that frame separately from the > other, that is understandable because in that case there is no parent > frame. For this, it seems as htmlUnit just load the frames separately. > Am i right? Will htmlUnit support frames early? HtmlUnit should be loading the frames in the same order that the browser would. What error are you seeing? > I still have another question about Javascript in htmlUnit. In my > webPage i use some "if" Javascript sentences for know in which browser > i'm working on, for example "navigator.appName == 'Netscape'". > Is there any way with htmlUnit to simulate that this JavaScript is > being interpreted by Netscape Navigator or by Internet Explorer? > Has the file JavaScriptConfiguration.xml any relation with that? > What is the use of that file? Yes, JavaScriptConfiguration.xml is where the browser specific (javascript) behaviour is defined. Very little of the browser specific pieces are currently implemented at present but that configuration file is where everything is set up. To simulate a specific browser, you pass an instance of BrowserVersion into the constructor of the WebClient. This will set things like the browser type and will be used by JavaScriptConfiguration to determine which behaviour to provide. Hope this helps. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: BARAHONA,JESUS (HP-Spain,ex2) <jes...@hp...> - 2003-10-14 12:31:49
|
Hi all, I've begun with htmlUnit two weeks ago and i'm having problems when i try to load a page with JavaScript. I've been debugging and i think the problem is when trying to access to the parent of a frame with Javascript "parent.nav.document". I get the same error if i try to load that frame separately from the other, that is understandable because in that case there is no parent frame. For this, it seems as htmlUnit just load the frames separately. Am i right? Will htmlUnit support frames early? I still have another question about Javascript in htmlUnit. In my webPage i use some "if" Javascript sentences for know in which browser i'm working on, for example "navigator.appName == 'Netscape'". Is there any way with htmlUnit to simulate that this JavaScript is being interpreted by Netscape Navigator or by Internet Explorer? Has the file JavaScriptConfiguration.xml any relation with that? What is the use of that file? Thank You for your support. Regards. |
From: Mike B. <mb...@Ga...> - 2003-10-14 10:10:47
|
Raj Wagle wrote: > I'm just getting started with htmlunit, and am simply getting the page "http://htmlunit.sourceforge.net". > Does anyone know why I'm getting this error? That's very strange - I didn't think there was any javascript on that site. I'll look into that later this morning - it doesn't look very good if HtmlUnit can't parse it's own homepage ;-) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Raj W. <rw...@id...> - 2003-10-13 18:11:25
|
I'm just getting started with htmlunit, and am simply getting the page = "http://htmlunit.sourceforge.net". Does anyone know why I'm getting this error? Seems like some JavaScript issue. =20 It goes away when I do webClient.setJavaScriptEnabled(false); But, I don't want to disable JavaScript. com.gargoylesoftware.htmlunit.ScriptException: The undefined value has = no properties. at = com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScr= iptEngine.java:250) at = com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(Ht= mlPage.java:916) at = com.gargoylesoftware.htmlunit.ScriptFilter.loadScript(ScriptFilter.java:2= 30) at = com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:2= 03) at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown Source) at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at = com.gargoylesoftware.htmlunit.html.HtmlPage.createDocument(HtmlPage.java:= 289) at = com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:167)= at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:220) Thanks Raj |
From: <Gou...@ne...> - 2003-10-07 16:35:28
|
Hi Olivier! I have a problem with the popup too. I'm sure 'parent' and 'opener' are implemented. My problem was that the popup is not in a new TopLevelWindow. To find out if yours too, use the following debug code: if (page.getEnclosingWindow() instanceof com.gargoylesoftware.htmlunit.TopLevelWindow) { log.warn("WINDOW OPENER: " + ((com.gargoylesoftware.htmlunit.TopLevelWindow)(page.getEnclosingWindow())).getOpener()); } else { log.warn("WINDOW: page is not in top level window!!! " + page.getEnclosingWindow()); } This will print some useful information about the windows. In my case page is loaded into the frame that supposed to be the 'opener'. After that I'm geting of course 'The undefined value has no properties' Exception, as long as 'opener' is defined only for TopLevelWindow. I would start searching for a reason for this issue in com.gargoylesoftware.htmlunit.javascript.host.Window.jsFunction_open(...). I'm not sure it is exactly there, but it is a good point to start debugging. Best regards Alexei Goussev "Olivier Fourel" <oli...@ne...> wrote: >Hello, > >I wonder if a popup can execute a javascript function contained in its parent. > >Code called from the pop up window : >parent.opener.addElementToList(value); > > >This code throws the followong exception : > >Exception class=[org.mozilla.javascript.EvaluatorException] >com.gargoylesoftware.htmlunit.ScriptException: The undefined value has no properties. > at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:199) > at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:770) > > >Thanks, > >Olivier > > > __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 |
From: Mike B. <mb...@Ga...> - 2003-09-29 10:54:16
|
Olivier Fourel wrote: > I have a test running on an html page containing a form declared as > following : > > <FORM NAME="form" METHOD="POST" enctype="multipart/form-data"> > ..... > </FORM> <snip> > IS HtmlUnit able to manage such enctype ("multipart/form-data") ? No, it currently ignores the encoding attribute. Please open a feature request for this. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Olivier F. <oli...@ne...> - 2003-09-29 08:54:48
|
Hi, I have a test running on an html page containing a form declared as = following : <FORM NAME=3D"form" METHOD=3D"POST" enctype=3D"multipart/form-data"> ..... </FORM> when I submit the form i receive the following error: *************************************************************************= ******************************************************* Recoverable exception caught when writing request java.lang.IllegalArgumentException: java.lang.ClassCastException@12b5ecb at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtil= s.java:1789) at = org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtil= s.java:1684) at = org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java= :1713) at = org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) at = org.apache.struts.action.RequestProcessor.processPopulate(RequestProcesso= r.java:821) at = org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:2= 54) at = org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at = com.netevent.expoavenuev2.controller.dispatcher.ExpoAvenueActionServlet.p= rocess(ExpoAvenueActionServlet.java:31) at = org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at = weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Ser= vletStubImpl.java:1053) at = weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.j= ava:387) at = weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.j= ava:305) at = weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.ru= n(WebAppServletContext.java:6310) at = weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSub= ject.java:317) at = weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)= at = weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServle= tContext.java:3622) at = weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.j= ava:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) *************************************************************************= ******************************************************* IS HtmlUnit able to manage such enctype ("multipart/form-data") ? |
From: Mike B. <mb...@Ga...> - 2003-09-22 10:21:57
|
Olivier Fourel wrote: > I wonder if a popup can execute a javascript function contained in its > parent. > > Code called from the pop up window : > parent.opener.addElementToList(value); > > > This code throws the followong exception : > > Exception class=[org.mozilla.javascript.EvaluatorException] > com.gargoylesoftware.htmlunit.ScriptException: The undefined value has > no properties. I would guess (without looking at the code) that either parent or opener hasn't been implemented yet. Please open a feature request for this. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Olivier F. <oli...@ne...> - 2003-09-22 09:00:55
|
Hello, =20 I wonder if a popup can execute a javascript function contained in its = parent. =20 Code called from the pop up window : parent.opener.addElementToList(value); =20 =20 This code throws the followong exception : =20 Exception class=3D[org.mozilla.javascript.EvaluatorException] com.gargoylesoftware.htmlunit.ScriptException: The undefined value has = no properties. at = com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScr= iptEngine.java:199) at = com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(H= tmlPage.java:770) =20 Thanks, =20 Olivier =20 =20 |
From: Mike B. <mb...@Ga...> - 2003-09-18 14:58:52
|
Brad Clarke wrote: > <probe for interest> > I'd offer some code to you but it's currently pretty tied to our > product, though we are working to separate it out and either contribute > to HtmlUnit or release as a new product. If it's added to HtmlUnit it > might be possible to have the javascript use the WebBrowser for it's > history support. > </probe for interest> I'm interested! ;-) Seriously, patches are always appreciated. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Brad C. <bc...@bo...> - 2003-09-18 14:51:41
|
Currently it doesn't even keep up with history for javascript to use, but we've written a "WebBrowser" wrapper for HtmlUnit that does this sort of thing for us by keeping a reference to whatever Page you want to go back to and using WebWindow.setEnclosedPage() on your current window. The WebBrowser keeps up with what's changing to store the "history" and creates new "WebBrowserTab"s (to isolate the history to each window) by using a WebWindowListener. <probe for interest> I'd offer some code to you but it's currently pretty tied to our product, though we are working to separate it out and either contribute to HtmlUnit or release as a new product. If it's added to HtmlUnit it might be possible to have the javascript use the WebBrowser for it's history support. </probe for interest> Brad C At 09:29 AM 9/18/2003, Jon Kleiser wrote: >Hi, > >In my little HtmlUnit project I have a WebClient wc, and a Page p which >get updated as I'm "browsing around". Now and then I may want to go back >to the previous page. Does HtmlUnit provide a mechanism for doing a Back, >or do I have to keep track of old requests myself? |
From: Mike B. <mb...@Ga...> - 2003-09-18 14:42:27
|
Jon Kleiser wrote: > In my little HtmlUnit project I have a WebClient wc, and a Page p which > get updated as I'm "browsing around". Now and then I may want to go back > to the previous page. Does HtmlUnit provide a mechanism for doing a > Back, or do I have to keep track of old requests myself? At present, you have to keep track of old requests. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Jon K. <jon...@us...> - 2003-09-18 14:29:56
|
Hi, In my little HtmlUnit project I have a WebClient wc, and a Page p which get updated as I'm "browsing around". Now and then I may want to go back to the previous page. Does HtmlUnit provide a mechanism for doing a Back, or do I have to keep track of old requests myself? Sincerely, Jon Kleiser -- --------------------------------------------------------------------- Jon Kleiser / SUAF / USIT / University of Oslo / Norway Mail: jon...@us... / Tel: +47-22852804 / Fax: +47-22852970 --------------------------------------------------------------------- |
From: Mike B. <mb...@Ga...> - 2003-09-17 11:23:14
|
Pg wrote: > What I thought, is that in the page returned whitin the ScriptResult > Object, I would see the property change doing this: asking for the Image, > and then asking for the "onClick" value. >>From the answer you gave me before, I see now that I won't see that change > in the ScriptResult Object, because no new page is loaded. > My question is: How can I simulate the click (without using the click > method of the HtmlButton class), and then verify that the Image1.src > property has effectively changed?. > In other words: How can I simulate an event that doesn't create a new > window, but changes things of the actual page, and verify the correctness of > those changes?. The original page that you have (and that is being returned again) should have been modified by the javascript and should show the new values. Have you verified that the src attribute has *not* changed? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Pg <pg...@ad...> - 2003-09-16 03:34:09
|
Hi again! First of all, thanks for the answer Mike!. Now, I explain better my problem: Suppose you have an image, and a button whose "onClick" event changes that image into another image (chang= es the src Image property). I mention the "onClick" event for no special reason, it could be the "onMouseOver" event, for the same for the main porpouse. What I want is to simulate this, and verify that the image effectively changed. What I have tried to do is this: a) Obtain the "onClickAttribute" of the Button, (HtmlButton), using the "getOnClickAttribute" method, (suppose that the result string it`s just = a single javascript instruction, like: << document.Image1.src =3D 'draw1.jpg;'>>= , to simplify the situation). b) Invoke the "executeJavaScriptIfPossible" method of the HtmlPage page class, whith th= e following paramameters: sourceCode =3D t= he string obtained in a). sourceName =3D "SourceName1". wrapSourceInFunction =3D false. Scope =3D null. What I thought, is that in the page returned whitin the ScriptResult Object, I would see the property change doing this: asking for the Image, and then asking for the "onClick" value. =46rom the answer you gave me before, I see now that I won't see that cha= nge in the ScriptResult Object, because no new page is loaded. My question is: How can I simulate the click (without using the click method of the HtmlButton class), and then verify that the Image1.src property has effectively changed?. In other words: How can I simulate an event that doesn't create a new window, but changes things of the actual page, and verify the correctness= of those changes?. Thank you very much, and sorry for the message size!. Pablo Gallo. ----- Original Message ----- From: "Mike Bowler" <mb...@Ga...> To: <htm...@li...> Sent: Sunday, September 14, 2003 9:37 PM Subject: Re: [Htmlunit-user] How can i call a javascript function?? > Pg wrote: > > I'm trying to "simulate" a navigation over a Html page. So, if an > > element in the page has an associated event (like onmouseover), I wa= nt > > to run the Javascript code associated (if exists) with this event. > > I tried using the Htmlpage.executeJavaScriptIfPossible method in thi= s > > way: > > > > Htmlpage.executeJavaScriptIfPossible( javascript_code, message, fals= e, > > null) > > > > Here is the code: > > > > ScriptResult sr =3D > > page.executeJavaScriptIfPossible("document.Form1.Input1.value =3D > > 'go!';", "error in go!", false, null); > > > > The problem is that the new page I obtained in the ScriptResult Obje= ct > > returned by the the previous operation doesn't differ at all from th= e > > original page, when I was expecting a different value in the > > Form1.Input1.value attribute: 'go!'. This operation doesn=B4t throw = any > > exception, it just pass..... but there`s no differences!!. > > The page returned in the ScriptResult will only be different if a new > page was loaded as a result of executing the javascript. In this case, > no new page will be loaded so the same page should be returned. > > I don't see anything wrong with the code you have provided - I would > have expected this to work. Can you provide a more complete sample? > > -- > 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:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |