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: Kent T. <ke...@cp...> - 2005-03-16 09:01:50
|
Marc Guillemot wrote: > you first need to make changes in > com.gargoylesoftware.htmlunit.javascript.host.Form to add js setter and > getter for onsubmit like what is done in > com.gargoylesoftware.htmlunit.javascript.host.HTMLElement for different > event handlers. Then you have to get this javascript function called in > place of the interpretation of the string attribute when the form is > submitted. All these changes can be done with current architecture of > htmlunit. Thanks for the help! I'll try it and see how it works! -- Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept, CPTTM Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag & RedHat |
From: Marc G. <mgu...@ya...> - 2005-03-16 08:59:55
|
From the javadoc of HtmlForm#submit(): "Submit this form to the appropriate server as if it had been submitted by javascript - ie no submit buttons were pressed. Note that because we are simulating a javascript submit, the onsubmit handler will not get executed." In a real browser you won't call submit on a form, you will click a submit button. Just do the same with htmlunit and your javascript will be executed. Marc. Kent Tong wrote: > Hi, > > It seems that the onsubmit handler is not called when I call > submit() on the form. Here is a test html file: > > <html> > <body> > <script language="JavaScript"><!-- > function foo() { > alert('ddd'); > } > // --></script> > <form name="form1" onsubmit="foo()"> > <input type="Submit" name="OK" value="OK"/> > </form> > </body> > </html> > > The test case below fails: > > public class OnsubmitTest extends TestCase { > public void testOnSubmit() throws Exception { > WebClient client = new WebClient(); > CollectingAlertHandler handler = new CollectingAlertHandler(); > client.setAlertHandler(handler); > URL url = new URL("http://localhost:8080/TDDCalc/Test.html"); > HtmlPage page = (HtmlPage) client.getPage(url); > HtmlForm form = (HtmlForm) page.getAllForms().get(0); > form.submit(); > assertEquals(handler.getCollectedAlerts().size(), 1); > } > } > > If I use a real browser, it does show the alert. Any idea? > TIA! > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Marc G. <mgu...@ya...> - 2005-03-16 08:56:13
|
> Thanks for the reply. I believe the difficulty is > that onsubmit is treated as an attribute whose value > is a string. But when I assign to it, I am assigning > an InterpretedFunction object to it. Can this problem > be solved in the current architecture of HtmlUnit? > If so, how? I'd like to help implement it but I know > very little about HtmlUnit or Rhino. It took me > a few hours with the debugger just to find out the > difficulty above. you first need to make changes in com.gargoylesoftware.htmlunit.javascript.host.Form to add js setter and getter for onsubmit like what is done in com.gargoylesoftware.htmlunit.javascript.host.HTMLElement for different event handlers. Then you have to get this javascript function called in place of the interpretation of the string attribute when the form is submitted. All these changes can be done with current architecture of htmlunit. Marc. |
From: Brad C. <yo...@br...> - 2005-03-16 03:58:41
|
I almost had it but there's a bug in clover's license stuff with jdk 1.5 on windows. It was fixed a month ago but no updated clover-ant package has been added to the maven repository so I'm kinda stuck :( --- Mike Bowler <mb...@Ga...> wrote: > Brad Clarke wrote: > > >It would be out now if I could get maven to work :) > > > > > > If you don't get maven working then I'll build it tomorrow (I just got > in and am too tired to do it tonight). |
From: Mike B. <mb...@Ga...> - 2005-03-16 03:17:47
|
Brad Clarke wrote: >It would be out now if I could get maven to work :) > > If you don't get maven working then I'll build it tomorrow (I just got in and am too tired to do it tonight). -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ |
From: Kent T. <ke...@cp...> - 2005-03-16 01:50:59
|
Mike Bowler wrote: > If the browsers allow something that HtmlUnit doesn't then it's just a > matter of us not having got to that feature yet. If you open a feature > request then somebody will implement that feature. Alternately, you > could implement the feature yourself and submit a patch. > > In any case, we're implementing features as we need them or as people > request them so make sure you open feature requests for anything you > need that is missing. Thanks for the reply. I believe the difficulty is that onsubmit is treated as an attribute whose value is a string. But when I assign to it, I am assigning an InterpretedFunction object to it. Can this problem be solved in the current architecture of HtmlUnit? If so, how? I'd like to help implement it but I know very little about HtmlUnit or Rhino. It took me a few hours with the debugger just to find out the difficulty above. -- Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept, CPTTM Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag & RedHat |
From: Brad C. <yo...@br...> - 2005-03-15 21:30:08
|
You need to run "ant initialize" first then "ant jar" will work (doesn't mean ant is supported but I use it all the time) --- Sridhar Ranganathan <Sri...@Su...> wrote: > Great to hear ..!! > > A quick question. Can I use ant to build using build.xml ? I tried > compiling using "ant jar" and it is showing errors on "assertEquals" and > "EventCatcher" - though I have junit.jar file directory (not the > individual jar file) in the CLASSPATH. > > If ant is not supported, then I will try with maven. > > Thanks so much. It is a fantastic tool. > > :) > Sridhar > > > Brad Clarke wrote: > > It would be out now if I could get maven to work :) > > > > > > --- Sridhar Ranganathan <Sri...@Su...> wrote: > > > >>Thanks Brad. Do you know by when (approx time frame) it will be out ? > >> > >>Sridhar > >> > >> > >>Brad Clarke wrote: > >> > >>>Currently the only way to get things from the next build is to checkout and > >> > >>compile > >> > >>>it yourself (I was actually working on something for this when I got this email > >> > >>but > >> > >>>it'll be a couple of days at least). 1.5 is almost out the door if you don't > >> > >>want to > >> > >>>do that. > >>> > >>> > >>>--- Sridhar Ranganathan <Sri...@Su...> wrote: > >>> > >>> > >>>>Hi, > >>>> > >>>>I saw the change history which goes into "next" build - which I presume > >>>>1.5 pre release. Where can I get the jar file for that ? > >>>> > >>>>I need it desperately as quite a few pages of my test needs the fixes > >>>>set for this release. > >>>> > >>>>thanks > >>>> > >>>>Sridhar R > >>> > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>SF email is sponsored by - The IT Product Guide > >>>Read honest & candid reviews on hundreds of IT Products from real users. > >>>Discover which products truly live up to the hype. Start reading now. > >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >>>_______________________________________________ > >>>Htmlunit-user mailing list > >>>Htm...@li... > >>>https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >> > >>-- > >>Sridhar R > >> > >> > >> > >>------------------------------------------------------- > >>SF email is sponsored by - The IT Product Guide > >>Read honest & candid reviews on hundreds of IT Products from real users. > >>Discover which products truly live up to the hype. Start reading now. > >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >>_______________________________________________ > >>Htmlunit-user mailing list > >>Htm...@li... > >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >> > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- > Sridhar R > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Sridhar R. <Sri...@Su...> - 2005-03-15 20:40:39
|
Great to hear ..!! A quick question. Can I use ant to build using build.xml ? I tried compiling using "ant jar" and it is showing errors on "assertEquals" and "EventCatcher" - though I have junit.jar file directory (not the individual jar file) in the CLASSPATH. If ant is not supported, then I will try with maven. Thanks so much. It is a fantastic tool. :) Sridhar Brad Clarke wrote: > It would be out now if I could get maven to work :) > > > --- Sridhar Ranganathan <Sri...@Su...> wrote: > >>Thanks Brad. Do you know by when (approx time frame) it will be out ? >> >>Sridhar >> >> >>Brad Clarke wrote: >> >>>Currently the only way to get things from the next build is to checkout and >> >>compile >> >>>it yourself (I was actually working on something for this when I got this email >> >>but >> >>>it'll be a couple of days at least). 1.5 is almost out the door if you don't >> >>want to >> >>>do that. >>> >>> >>>--- Sridhar Ranganathan <Sri...@Su...> wrote: >>> >>> >>>>Hi, >>>> >>>>I saw the change history which goes into "next" build - which I presume >>>>1.5 pre release. Where can I get the jar file for that ? >>>> >>>>I need it desperately as quite a few pages of my test needs the fixes >>>>set for this release. >>>> >>>>thanks >>>> >>>>Sridhar R >>> >>> >>> >>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide >>>Read honest & candid reviews on hundreds of IT Products from real users. >>>Discover which products truly live up to the hype. Start reading now. >>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>>_______________________________________________ >>>Htmlunit-user mailing list >>>Htm...@li... >>>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >>-- >>Sridhar R >> >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user -- Sridhar R |
From: Brad C. <yo...@br...> - 2005-03-15 20:28:14
|
It would be out now if I could get maven to work :) --- Sridhar Ranganathan <Sri...@Su...> wrote: > Thanks Brad. Do you know by when (approx time frame) it will be out ? > > Sridhar > > > Brad Clarke wrote: > > Currently the only way to get things from the next build is to checkout and > compile > > it yourself (I was actually working on something for this when I got this email > but > > it'll be a couple of days at least). 1.5 is almost out the door if you don't > want to > > do that. > > > > > > --- Sridhar Ranganathan <Sri...@Su...> wrote: > > > >>Hi, > >> > >>I saw the change history which goes into "next" build - which I presume > >>1.5 pre release. Where can I get the jar file for that ? > >> > >>I need it desperately as quite a few pages of my test needs the fixes > >>set for this release. > >> > >>thanks > >> > >>Sridhar R > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > -- > Sridhar R > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Sridhar R. <Sri...@Su...> - 2005-03-15 19:53:43
|
Thanks Brad. Do you know by when (approx time frame) it will be out ? Sridhar Brad Clarke wrote: > Currently the only way to get things from the next build is to checkout and compile > it yourself (I was actually working on something for this when I got this email but > it'll be a couple of days at least). 1.5 is almost out the door if you don't want to > do that. > > > --- Sridhar Ranganathan <Sri...@Su...> wrote: > >>Hi, >> >>I saw the change history which goes into "next" build - which I presume >>1.5 pre release. Where can I get the jar file for that ? >> >>I need it desperately as quite a few pages of my test needs the fixes >>set for this release. >> >>thanks >> >>Sridhar R > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user -- Sridhar R |
From: Brad C. <yo...@br...> - 2005-03-15 19:22:03
|
It's likely that we're not handling the context properly during the setTimeout: window.setTimeout("formElement.focus();", 400); Could you try re-locating your element instide the setTimeout instead of using the variable? --- Zhenrong Liu <Zhe...@sa...> wrote: > Hey, > > I have a test case which will test invalid text input: after enter an invalid > value in the text input, then click run button, an alert will show up and after > you click OK in the alert wondow, the focus will go back to the input text field > for new input. > .... > final HtmlPage page3 = (HtmlPage)input.click(); > assertEquals(handler.getCollectedAlerts().size(), 1); > .... > The test passed the assertEquals(), but I got JavaScriptException from console: > > ==>> JavaScriptEngine, JavaScriptException occurred: > ======= EXCEPTION START ======== > EcmaError: lineNumber=[1] column=[0] lineSource=[GargoyleWrapper2()] > name=[TypeError] sourceName=[)] message=[TypeError: focus is not a function. > ()#1)] > com.gargoylesoftware.htmlunit.ScriptException: TypeError: focus is not a function. > ()#1) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:310) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) > at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:274) > at java.lang.Thread.run(Unknown Source) > Enclosed exception: > org.mozilla.javascript.EcmaError: TypeError: focus is not a function. ()#1) > at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240) > at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230) > at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) > at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3258) > at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3317) > at > org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:1987) > at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:114) > at org.mozilla.javascript.gen.c16._c1(Wrapper definition for > Window.setTimeout():1) > at org.mozilla.javascript.gen.c16.call(Wrapper definition for > Window.setTimeout()) > at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:105) > at org.mozilla.javascript.gen.c17._c0(Window.setTimeout():1) > at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) > at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) > at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) > at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) > at org.mozilla.javascript.gen.c17.exec(Window.setTimeout()) > at org.mozilla.javascript.Context.evaluateString(Context.java:1220) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:304) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) > at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:274) > at java.lang.Thread.run(Unknown Source) > == CALLING JAVASCRIPT == > GargoyleWrapper2() > ======= EXCEPTION END ======== > Mar 15, 2005 1:48:17 PM com.gargoylesoftware.htmlunit.javascript.host.Window$1 run > SEVERE: Caught exception in Window.setTimeout() > ======= EXCEPTION START ======== > EcmaError: lineNumber=[1] column=[0] lineSource=[GargoyleWrapper2()] > name=[TypeError] sourceName=[)] message=[TypeError: focus is not a function. > ()#1)] > com.gargoylesoftware.htmlunit.ScriptException: TypeError: focus is not a function. > ()#1) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:310) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) > at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:274) > at java.lang.Thread.run(Unknown Source) > Enclosed exception: > org.mozilla.javascript.EcmaError: TypeError: focus is not a function. ()#1) > at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240) > at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230) > at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) > at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3258) > at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3317) > at > org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:1987) > at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:114) > at org.mozilla.javascript.gen.c16._c1(Wrapper definition for > Window.setTimeout():1) > at org.mozilla.javascript.gen.c16.call(Wrapper definition for > Window.setTimeout()) > at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:105) > at org.mozilla.javascript.gen.c17._c0(Window.setTimeout():1) > at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) > at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) > at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) > at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) > at org.mozilla.javascript.gen.c17.exec(Window.setTimeout()) > at org.mozilla.javascript.Context.evaluateString(Context.java:1220) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:304) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) > at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:274) > at java.lang.Thread.run(Unknown Source) > == CALLING JAVASCRIPT == > GargoyleWrapper2() > ======= EXCEPTION END ======== > > I checked the JavaScript and I believe the offfending code is: > > if (maxValue != null && elementValue.length != 0 && elementValue > maxValue) { > > alert(SAS_substituteL10N(dynamicPP_validate_msg16,elementName,maxValue,maxValExclusiveMessage)); > showContent(theObject.menuItemName, theObject.menuItemName, > theObject.contentElementName); > window.setTimeout("formElement.focus();", 400); > return true; > } > > But I don't have a clue how to fix this and I was wondering if someone can shed > some light? > > Thanks, > -Zhenrong |
From: Zhenrong L. <Zhe...@sa...> - 2005-03-15 19:11:42
|
Hey, I have a test case which will test invalid text input: after enter an = invalid value in the text input, then click run button, an alert will = show up and after you click OK in the alert wondow, the focus will go = back to the input text field for new input.=20 .... final HtmlPage page3 =3D (HtmlPage)input.click(); assertEquals(handler.getCollectedAlerts().size(), 1); .... The test passed the assertEquals(), but I got JavaScriptException from = console: =3D=3D>> JavaScriptEngine, JavaScriptException occurred:=20 =3D=3D=3D=3D=3D=3D=3D EXCEPTION START =3D=3D=3D=3D=3D=3D=3D=3D EcmaError: lineNumber=3D[1] column=3D[0] = lineSource=3D[GargoyleWrapper2()] name=3D[TypeError] sourceName=3D[)] = message=3D[TypeError: focus is not a function. ()#1)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: focus is not a = function. ()#1) at = com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScr= iptEngine.java:310) at = com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(H= tmlPage.java:709) at = com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:27= 4) at java.lang.Thread.run(Unknown Source) Enclosed exception:=20 org.mozilla.javascript.EcmaError: TypeError: focus is not a function. = ()#1) at = org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:32= 40) at = org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:32= 30) at = org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) at = org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3258) at = org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:= 3317) at = org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime= .java:1987) at = org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:114= ) at org.mozilla.javascript.gen.c16._c1(Wrapper definition for = Window.setTimeout():1) at org.mozilla.javascript.gen.c16.call(Wrapper definition for = Window.setTimeout()) at = org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:105= ) at org.mozilla.javascript.gen.c17._c0(Window.setTimeout():1) at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) at = org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at = org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) at org.mozilla.javascript.gen.c17.exec(Window.setTimeout()) at org.mozilla.javascript.Context.evaluateString(Context.java:1220) at = com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScr= iptEngine.java:304) at = com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(H= tmlPage.java:709) at = com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:27= 4) at java.lang.Thread.run(Unknown Source) =3D=3D CALLING JAVASCRIPT =3D=3D GargoyleWrapper2() =3D=3D=3D=3D=3D=3D=3D EXCEPTION END =3D=3D=3D=3D=3D=3D=3D=3D Mar 15, 2005 1:48:17 PM = com.gargoylesoftware.htmlunit.javascript.host.Window$1 run SEVERE: Caught exception in Window.setTimeout() =3D=3D=3D=3D=3D=3D=3D EXCEPTION START =3D=3D=3D=3D=3D=3D=3D=3D EcmaError: lineNumber=3D[1] column=3D[0] = lineSource=3D[GargoyleWrapper2()] name=3D[TypeError] sourceName=3D[)] = message=3D[TypeError: focus is not a function. ()#1)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: focus is not a = function. ()#1) at = com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScr= iptEngine.java:310) at = com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(H= tmlPage.java:709) at = com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:27= 4) at java.lang.Thread.run(Unknown Source) Enclosed exception:=20 org.mozilla.javascript.EcmaError: TypeError: focus is not a function. = ()#1) at = org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:32= 40) at = org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:32= 30) at = org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246) at = org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3258) at = org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:= 3317) at = org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime= .java:1987) at = org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:114= ) at org.mozilla.javascript.gen.c16._c1(Wrapper definition for = Window.setTimeout():1) at org.mozilla.javascript.gen.c16.call(Wrapper definition for = Window.setTimeout()) at = org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:105= ) at org.mozilla.javascript.gen.c17._c0(Window.setTimeout():1) at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) at = org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at = org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.gen.c17.call(Window.setTimeout()) at org.mozilla.javascript.gen.c17.exec(Window.setTimeout()) at org.mozilla.javascript.Context.evaluateString(Context.java:1220) at = com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScr= iptEngine.java:304) at = com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(H= tmlPage.java:709) at = com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:27= 4) at java.lang.Thread.run(Unknown Source) =3D=3D CALLING JAVASCRIPT =3D=3D GargoyleWrapper2() =3D=3D=3D=3D=3D=3D=3D EXCEPTION END =3D=3D=3D=3D=3D=3D=3D=3D I checked the JavaScript and I believe the offfending code is: if (maxValue !=3D null && elementValue.length !=3D 0 && elementValue > = maxValue) { = alert(SAS_substituteL10N(dynamicPP_validate_msg16,elementName,maxValue,ma= xValExclusiveMessage)); showContent(theObject.menuItemName, theObject.menuItemName, = theObject.contentElementName); window.setTimeout("formElement.focus();", 400); return true; } But I don't have a clue how to fix this and I was wondering if someone = can shed some light? Thanks, -Zhenrong |
From: Brad C. <yo...@br...> - 2005-03-15 19:09:13
|
Currently the only way to get things from the next build is to checkout and compile it yourself (I was actually working on something for this when I got this email but it'll be a couple of days at least). 1.5 is almost out the door if you don't want to do that. --- Sridhar Ranganathan <Sri...@Su...> wrote: > Hi, > > I saw the change history which goes into "next" build - which I presume > 1.5 pre release. Where can I get the jar file for that ? > > I need it desperately as quite a few pages of my test needs the fixes > set for this release. > > thanks > > Sridhar R |
From: Sridhar R. <Sri...@Su...> - 2005-03-15 18:59:00
|
Hi, I saw the change history which goes into "next" build - which I presume 1.5 pre release. Where can I get the jar file for that ? I need it desperately as quite a few pages of my test needs the fixes set for this release. thanks Sridhar R |
From: Mike B. <mb...@Ga...> - 2005-03-15 12:16:30
|
Kent Tong wrote: > Thanks for the reply. I found that it's because onsubmit > is not a writable property of the Form in htmlunit. Any > idea why? Any plan to implement this? If the browsers allow something that HtmlUnit doesn't then it's just a matter of us not having got to that feature yet. If you open a feature request then somebody will implement that feature. Alternately, you could implement the feature yourself and submit a patch. In any case, we're implementing features as we need them or as people request them so make sure you open feature requests for anything you need that is missing. -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ |
From: Kent T. <ke...@cp...> - 2005-03-15 01:03:53
|
Andrey Subbotin wrote: > Perhaps it should be type="submit", i.e. lowercase. HtmlUnit is generally > more picky about case-sensitivity than real browsers. Thanks for the reply. I found that it's because onsubmit is not a writable property of the Form in htmlunit. Any idea why? Any plan to implement this? Thanks! -- Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept, CPTTM Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag & RedHat |
From: Andrey S. <asu...@oi...> - 2005-03-14 06:57:13
|
> <input type="Submit" name="OK" value="OK"/> Perhaps it should be type="submit", i.e. lowercase. HtmlUnit is generally more picky about case-sensitivity than real browsers. Andrey |
From: Kent T. <ke...@cp...> - 2005-03-13 05:22:38
|
Hi, Here is a test html file: <html> <body> <script language="JavaScript"><!-- function foo() { document.form1.onsubmit=bar; } function bar() { alert('aaa'); return false; } window.onload=foo // --></script> <form name="form1"> <input type="Submit" name="OK" value="OK"/> </form> </body> </html> When I click OK, the browser will display an alert. But I don't know why no alert (zero) is captured when htmlunit is used to simulate the action: public void testOnSubmit() throws Exception { WebClient client = new WebClient(); CollectingAlertHandler handler = new CollectingAlertHandler(); client.setAlertHandler(handler); URL url = new URL("http://localhost:8080/TDDCalc/Test.html"); HtmlPage page = (HtmlPage) client.getPage(url); HtmlForm form = (HtmlForm) page.getAllForms().get(0); HtmlSubmitInput ok = (HtmlSubmitInput) form.getInputByName("OK"); ok.click(); assertEquals(handler.getCollectedAlerts().size(), 1); } |
From: Kent T. <ke...@cp...> - 2005-03-13 05:18:46
|
Hi, > Somehow the onload event is called twice. Here is a test html file: Sorry, please ignore it. As I was clicking the OK button, of course there were two alerts. |
From: Kent T. <ke...@cp...> - 2005-03-13 05:15:44
|
Hi, Somehow the onload event is called twice. Here is a test html file: <html> <body> <script language="JavaScript"><!-- function foo() { alert('aaa'); } window.onload=foo // --></script> <form name="form1"> <input type="Submit" name="OK" value="OK"/> </form> </body> </html> The test case below fails: public void testOnSubmit() throws Exception { WebClient client = new WebClient(); CollectingAlertHandler handler = new CollectingAlertHandler(); client.setAlertHandler(handler); URL url = new URL("http://localhost:8080/TDDCalc/Test.html"); HtmlPage page = (HtmlPage) client.getPage(url); HtmlForm form = (HtmlForm) page.getAllForms().get(0); HtmlSubmitInput ok = (HtmlSubmitInput) form.getInputByName("OK"); ok.click(); assertEquals(handler.getCollectedAlerts().size(), 1); } If I use a real browser, it shows the alert just once. Any idea? TIA! |
From: Kent T. <ke...@cp...> - 2005-03-12 13:05:43
|
Hi, It seems that the onsubmit handler is not called when I call submit() on the form. Here is a test html file: <html> <body> <script language="JavaScript"><!-- function foo() { alert('ddd'); } // --></script> <form name="form1" onsubmit="foo()"> <input type="Submit" name="OK" value="OK"/> </form> </body> </html> The test case below fails: public class OnsubmitTest extends TestCase { public void testOnSubmit() throws Exception { WebClient client = new WebClient(); CollectingAlertHandler handler = new CollectingAlertHandler(); client.setAlertHandler(handler); URL url = new URL("http://localhost:8080/TDDCalc/Test.html"); HtmlPage page = (HtmlPage) client.getPage(url); HtmlForm form = (HtmlForm) page.getAllForms().get(0); form.submit(); assertEquals(handler.getCollectedAlerts().size(), 1); } } If I use a real browser, it does show the alert. Any idea? TIA! |
From: Brad C. <yo...@br...> - 2005-03-11 23:33:35
|
Not just javascript, but I'd think any page load should clear it. Log a bug on sf.net (with a simple test case if you've got one) so this doesn't get lost :) Brad C --- bk...@up... wrote: > HtmlUnit's implementation for onblur() through the methods > WebClient.moveFocusFromElement and WebClient.moveFocusToElement ends up > causing an infinite loop in certain cases. > > We have javascript on all our pages that set the focus to the correct > input field upon page load. We also have input fields on our pages that > post back to the server to obtain more info when the user enters a value > and tabs out. These fields use the onblur() event to post back to the > server and reload the page. > > Seems pretty straight forward....but here is the issue - HtmlUnit does > not clear the elementWithFocus if an onblur causes a roundtrip to the > server, so when our new page loads, it sets the focus on the correct > input field, which in turn causes the method > WebClient.moveFocusToElement to run, which does another onblur on the > elementWithFocus which is the original field that did the original > onblur from the previous page - so over and over again until the system > crashes onblur is called on this field. I think the fix is for HtmlUnit > to clear the elementWithFocus if javascript causes a post back to the > server. Thoughts? > > Thanks, > > Brian > > > |
From: <bk...@up...> - 2005-03-11 22:07:26
|
HtmlUnit's implementation for onblur() through the methods WebClient.moveFocusFromElement and WebClient.moveFocusToElement ends up causing an infinite loop in certain cases. =20 =20 We have javascript on all our pages that set the focus to the correct input field upon page load. We also have input fields on our pages that post back to the server to obtain more info when the user enters a value and tabs out. These fields use the onblur() event to post back to the server and reload the page. =20 =20 Seems pretty straight forward....but here is the issue - HtmlUnit does not clear the elementWithFocus if an onblur causes a roundtrip to the server, so when our new page loads, it sets the focus on the correct input field, which in turn causes the method WebClient.moveFocusToElement to run, which does another onblur on the elementWithFocus which is the original field that did the original onblur from the previous page - so over and over again until the system crashes onblur is called on this field. I think the fix is for HtmlUnit to clear the elementWithFocus if javascript causes a post back to the server. Thoughts? =20 Thanks, =20 Brian =20 |
From: Mike B. <mb...@Ga...> - 2005-03-11 12:12:39
|
I'm just about to head out the door so I'm only going to answer part of this. Hopefully someone else can just in with more. nikola wrote: >== CALLING JAVASCRIPT == >GargoyleWrapper15() >======= EXCEPTION END ======== > > any ideas are welcome ...it's strange that sometimes >I get GargoyleWrapper18(), sometimes >GargoyleWrapper15(), sometimes GargoyleWrapper13() >and sometimes works just fine :) > > When you specify javascript in an event handler like onclick="alert('foo');", we have to convert that snippet of code into a javascript function before we can call it. The function that we wrap around this code is called GargoyleWrapper plus some incrementing number. So, the fact that you're seeing an exception in a GargoyleWrapper function means that the original code was specified in an event handler like onload, onclick, onblur etc. -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ |
From: nikola <web...@ya...> - 2005-03-11 09:37:45
|
hi, I get following errors, but sometimes it works fine here is part of html code that's causing problem: <table border="0" cellpadding="0" cellspacing="0" align="center"> <form name="html_form" action="/im_cms/site/dot_editor/edit_element.php?element_name=html_test&content_id=43&element_type=4&action=save" method="post"> <tr valign="top"> <td id="pocetak_containera"> <script language='JavaScript'> <!-- var spaw_active_toolbar = true; //--> </script> <script language="javascript"> <!-- setTimeout('document.getElementById("container").value ="New html text added\\n";',0); setTimeout('document.getElementById("container").value = document.getElementById("container").value.replace(/"/g,\'"\');',0); setTimeout('document.getElementById("container").value = document.getElementById("container").value.replace(/@@START_COMMENT/g,\'<!--\');',0); setTimeout('document.getElementById("container").value = document.getElementById("container").value.replace(/@@END_COMMENT/g,\'-->\');',0); setTimeout("SPAW_editorInit('container','/im_cms/site/html_editor/wysiwyg.css','ltr');",0); //--></script></td><td id="SPAW_container_toolbar_right_design" valign="top" class="SPAW_default_toolbar"></td><td id="SPAW_container_toolbar_right_html" valign="top" class="SPAW_default_toolbar" style="display : none;"></td></tr><tr><td class="SPAW_default_toolbar"></td><td id="SPAW_container_toolbar_bottom_design" class="SPAW_default_toolbar" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="right" valign="top" class="SPAW_default_toolbar_bottom" nowrap="yes"><img id="SPAW_container_tb_design_tab_on" alt="" src="/im_cms/site/html_editor/lib/themes/default/img/tb_design_tab_on.gif" unselectable="on"><img id="SPAW_container_tb_html_tab" alt="Switch to HTML (code) mode" src="/im_cms/site/html_editor/lib/themes/default/img/tb_html_tab.gif" onClick="SPAW_html_tab_click('container',this)" class="SPAW_default_tb_out" onMouseOver="SPAW_default_bt_over(this)" onMouseOut="SPAW_default_bt_out(this)" onMouseDown="SPAW_default_bt_down(this)" onMouseUp="SPAW_default_bt_up(this)" unselectable="on"></td></tr></table></td><td id="SPAW_container_toolbar_bottom_html" class="SPAW_default_toolbar" width="100%" style="display : none;"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="right" valign="top" class="SPAW_default_toolbar_bottom" nowrap="yes"><img id="SPAW_container_tb_design_tab" alt="Switch to WYSIWYG (design) mode" src="/im_cms/site/html_editor/lib/themes/default/img/tb_design_tab.gif" onClick="SPAW_design_tab_click('container',this)" class="SPAW_default_tb_out" onMouseOver="SPAW_default_bt_over(this)" onMouseOut="SPAW_default_bt_out(this)" onMouseDown="SPAW_default_bt_down(this)" onMouseUp="SPAW_default_bt_up(this)" unselectable="on"><img id="SPAW_container_tb_html_tab_on" alt="" src="/im_cms/site/html_editor/lib/themes/default/img/tb_html_tab_on.gif" unselectable="on"></td></tr></table></td><td class="SPAW_default_toolbar"></td></tr></table> </td> </tr> <tr> <td align="right" style="padding-top:15px;"><input type="submit" class="input-button" value="Save"></td> </tr> </form> </table> and here copy trace I get... INFO: Executing timeout: document.getElementById("container").value ="New html text added\n"; 2005.03.11 10:23:56 com.gargoylesoftware.htmlunit.javascript.host.Window$1 run INFO: Executing timeout: document.getElementById("container").value = document.getElementById("container").value.replace(/"/g,'"'); 2005.03.11 10:23:56 com.gargoylesoftware.htmlunit.javascript.host.Window$1 run INFO: Executing timeout: document.getElementById("container").value = document.getElementById("container").value.replace(/@@START_COMMENT/g,'<!--'); 2005.03.11 10:23:56 com.gargoylesoftware.htmlunit.javascript.host.Window$1 run INFO: Executing timeout: document.getElementById("container").value = document.getElementById("container").value.replace(/@@END_COMMENT/g,'-->'); 2005.03.11 10:23:56 com.gargoylesoftware.htmlunit.javascript.host.Window$1 run INFO: Executing timeout: SPAW_editorInit('container','/im_cms/site/html_editor/wysiwyg.css','ltr'); 2005.03.11 10:23:56 com.gargoylesoftware.htmlunit.javascript.host.Window$1 run SEVERE: Caught exception in Window.setTimeout() ======= EXCEPTION START ======== Exception class=[java.lang.IllegalStateException] com.gargoylesoftware.htmlunit.ScriptException at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:294) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:266) at java.lang.Thread.run(Thread.java:536) Enclosed exception: java.lang.IllegalStateException at org.mozilla.javascript.ScriptRuntime.getTopCallScope(ScriptRuntime.java:2752) at org.mozilla.javascript.ScriptRuntime.toObjectOrNull(ScriptRuntime.java:838) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:1963) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2869) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149) at org.mozilla.javascript.Context.evaluateString(Context.java:1220) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:289) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:266) at java.lang.Thread.run(Thread.java:536) == CALLING JAVASCRIPT == GargoyleWrapper15() ======= EXCEPTION END ======== any ideas are welcome ...it's strange that sometimes I get GargoyleWrapper18(), sometimes GargoyleWrapper15(), sometimes GargoyleWrapper13() and sometimes works just fine :) I have tried to setTimeout to webclient in my test, but it doesn't help, and that javascript code is not mine and it's inside of php code so it's hard to change something in the code client.setTimeout(10000); Thank you... __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 |