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: Marc G. <mgu...@ya...> - 2005-05-02 07:08:09
|
Hi Dave, this has been fixed since version 1.5. If you build yourself from CVS you will already benefit of the changes. Marc. Dave Kosenko wrote: > To followup my own message, I have determined that, in the scenario > below, in most places in the > code, the browser version is correctly transmitted as specified in the > call to WebClient. > > However, in the code that handles javascript, specifically in > Navigator.java, the value for userAgent as > returned by jsGet_userAgent() is always > "Mozilla/4.0 (compatible; MSIE 6.0b Windows98)" > regardless of what it should be set to. As the above string is the > default setting for BrowserVersion, > I'd have to guess that Navigator.java is not referencing the > BrowserVersion as set in WebClient() > > Dave > > At 01:21 PM 4/29/2005, Dave Kosenko wrote: > >> Ok, after more complete investigation, I must retract my statement >> that there is a problem with >> when the onload() function is being invoked in HTMLUnit. >> >> However, I think I have found another problem that was actually making >> it look as though onload >> was the problem. It appears that the problem lies with WebClient. In >> my java program, I set up >> a BrowserVersion to emulate Firefox: >> >> BrowserVersion bv; >> ... >> bv = new BrowserVersion("Netscape", "5.0 (Windows; en-US)", >> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) >> Gecko/20050414 Firefox/1.0.3", "1.2"); >> ... >> WebClient webClient = new WebClient(bv,); >> >> In the javascript brought into the page, I added an alert to tell me >> what it thought the browser version >> is (in the full code, this is critical, since it takes different >> actions based on the type of browser): >> >> function DetectBrowser() { >> alert(navigator.appName); >> alert(navigator.appVersion); >> alert(navigator.userAgent); >> alert(navigator.appCodeName); >> alert(navigator.platorm); >> ... >> } >> >> And I get the following when I run the program: >> >> WARNING: window.alert("Microsoft Internet Explorer") no handler installed >> WARNING: window.alert("4.0 (compatible; MSIE 6.0b; Windows98)") no >> handler installed >> WARNING: window.alert("Mozilla/4.0 (compatible; MSIE 6.0b; >> Windows98)") no handler installed >> WARNING: window.alert("Mozilla") no handler installed >> WARNING: window.alert("Win32") no handler installed >> >> So either I am doing something very wrong, or my BrowserVersion is >> being completely ignored. I also >> tried using the various pre-defined BrowserVersion values in the >> BrowserVersion class, all with the same >> result. > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Marc G. <mgu...@ya...> - 2005-05-02 07:04:24
|
I have no other information to provide. You can try again, it's possible that sourceforge's CVS service encountered some problems. Marc. Dantes, Ed wrote: > Thanks Marc, > Can you please tell me how to dowload the current CVS repository?? I > have tried following the instructions on the sourceforge website but to > no avail > > Thanks > Ed > > -----Original Message----- > From: htm...@li... > [mailto:htm...@li...] On Behalf Of Marc > Guillemot > Sent: Thursday, April 28, 2005 4:32 AM > To: htm...@li... > Subject: Re: [Htmlunit-user] Help with Exception > > Hi, > > I think that this is due to a configuration problem is htmlunit and > should now be fixed in CVS. > > Marc. > > Dantes, Ed wrote: > >>Hi, >> >> When running htmlunit, I get the following exception: >> >> exception class = [org.mozilla.javascript.EvaluatorException] >> at com.gargoylesoftware.htmlunit.ScriptException: Setter configured > > >>but not implemented for property "name" for >> HTMLElement for HtmlImage[<img src = /gem/images/icons/pending.gif> > > >>cant set it to : 1 (js/apytmenu.js#14) >> >> Anyone come across this??Does it have something to do with > > images...I > >>ran this application before with not as much stuff (maybe images), >>and it worked fine... >> >> Thanks >> >> Ed >> > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net Plus > IDC's 2005 look-ahead and a copy of this survey Click here to start! > http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Dave K. <dko...@ve...> - 2005-04-30 00:22:58
|
To followup my own message, I have determined that, in the scenario below, in most places in the code, the browser version is correctly transmitted as specified in the call to WebClient. However, in the code that handles javascript, specifically in Navigator.java, the value for userAgent as returned by jsGet_userAgent() is always "Mozilla/4.0 (compatible; MSIE 6.0b Windows98)" regardless of what it should be set to. As the above string is the default setting for BrowserVersion, I'd have to guess that Navigator.java is not referencing the BrowserVersion as set in WebClient() Dave At 01:21 PM 4/29/2005, Dave Kosenko wrote: >Ok, after more complete investigation, I must retract my statement that >there is a problem with >when the onload() function is being invoked in HTMLUnit. > >However, I think I have found another problem that was actually making it >look as though onload >was the problem. It appears that the problem lies with WebClient. In my >java program, I set up >a BrowserVersion to emulate Firefox: > >BrowserVersion bv; >... >bv = new BrowserVersion("Netscape", "5.0 (Windows; en-US)", "Mozilla/5.0 >(Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 >Firefox/1.0.3", "1.2"); >... >WebClient webClient = new WebClient(bv,); > >In the javascript brought into the page, I added an alert to tell me what >it thought the browser version >is (in the full code, this is critical, since it takes different actions >based on the type of browser): > >function DetectBrowser() { > alert(navigator.appName); > alert(navigator.appVersion); > alert(navigator.userAgent); > alert(navigator.appCodeName); > alert(navigator.platorm); >... >} > >And I get the following when I run the program: > >WARNING: window.alert("Microsoft Internet Explorer") no handler installed >WARNING: window.alert("4.0 (compatible; MSIE 6.0b; Windows98)") no handler >installed >WARNING: window.alert("Mozilla/4.0 (compatible; MSIE 6.0b; Windows98)") no >handler installed >WARNING: window.alert("Mozilla") no handler installed >WARNING: window.alert("Win32") no handler installed > >So either I am doing something very wrong, or my BrowserVersion is being >completely ignored. I also >tried using the various pre-defined BrowserVersion values in the >BrowserVersion class, all with the same >result. |
From: Dantes, E. <Ed....@gd...> - 2005-04-29 17:20:59
|
Thanks Marc, Can you please tell me how to dowload the current CVS repository?? I have tried following the instructions on the sourceforge website but to no avail Thanks Ed=20 -----Original Message----- From: htm...@li... [mailto:htm...@li...] On Behalf Of Marc Guillemot Sent: Thursday, April 28, 2005 4:32 AM To: htm...@li... Subject: Re: [Htmlunit-user] Help with Exception Hi, I think that this is due to a configuration problem is htmlunit and should now be fixed in CVS. Marc. Dantes, Ed wrote: > Hi, >=20 > When running htmlunit, I get the following exception: >=20 > exception class =3D [org.mozilla.javascript.EvaluatorException] > at com.gargoylesoftware.htmlunit.ScriptException: Setter configured > but not implemented for property "name" for > HTMLElement for HtmlImage[<img src =3D = /gem/images/icons/pending.gif> > cant set it to : 1 (js/apytmenu.js#14) >=20 > Anyone come across this??Does it have something to do with images...I=20 > ran this application before with not as much stuff (maybe images),=20 > and it worked fine... >=20 > Thanks >=20 > Ed >=20 ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=3D105hix _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Dave K. <dko...@ve...> - 2005-04-29 17:19:40
|
Ok, after more complete investigation, I must retract my statement that there is a problem with when the onload() function is being invoked in HTMLUnit. However, I think I have found another problem that was actually making it look as though onload was the problem. It appears that the problem lies with WebClient. In my java program, I set up a BrowserVersion to emulate Firefox: BrowserVersion bv; ... bv = new BrowserVersion("Netscape", "5.0 (Windows; en-US)", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3", "1.2"); ... WebClient webClient = new WebClient(bv,); In the javascript brought into the page, I added an alert to tell me what it thought the browser version is (in the full code, this is critical, since it takes different actions based on the type of browser): function DetectBrowser() { alert(navigator.appName); alert(navigator.appVersion); alert(navigator.userAgent); alert(navigator.appCodeName); alert(navigator.platorm); ... } And I get the following when I run the program: WARNING: window.alert("Microsoft Internet Explorer") no handler installed WARNING: window.alert("4.0 (compatible; MSIE 6.0b; Windows98)") no handler installed WARNING: window.alert("Mozilla/4.0 (compatible; MSIE 6.0b; Windows98)") no handler installed WARNING: window.alert("Mozilla") no handler installed WARNING: window.alert("Win32") no handler installed So either I am doing something very wrong, or my BrowserVersion is being completely ignored. I also tried using the various pre-defined BrowserVersion values in the BrowserVersion class, all with the same result. Thanks, Dave |
From: Casey C. <cra...@na...> - 2005-04-29 14:31:37
|
I think I found the problem; those buttons are disabled by default, and only enabled when focus is placed on the multiselect or textarea associated with the button. TextArea.setText() doesn't seem to focus the TextArea; neither does TextArea.click(). Is there a reason that neither of these methods focus the TextArea? -- Casey On Fri, Apr 29, 2005 at 10:18:05AM +0200, Marc Guillemot wrote: > changes should be in the HtmlPage you're working on. > > Marc. > > Casey Crabb wrote: > >I'm using htmlunit-1.5 (the binaries) that I downloaded from > >sourceforge about a month ago. > > > >When javascript is modifying the page (or the form in my case) as a > >result of clicking a button in a form (that doesn't actually submit > >the form, the javascript method called returns false) where should > >those changes show up? In the existing HtmlPage/HtmlForm, or should I > >capture to the return value of the click() call? > > > >-- > >Casey > > > >On Thu, Apr 28, 2005 at 12:03:05PM +0200, Marc Guillemot wrote: > > > >>Hi Casey, > >> > >>this seems that htmlunit should be able to do what you want. Which > >>version do you use? Can you turn the js log level to debug to get more > >>information? > >> > >>Marc. > >> > >>Casey Crabb wrote: > >> > >>>I have a page where I'm moving elements from one widget to another via > >>>javascript: > >>> > >>>(Pardon the ascii art) > >>> > >>>[Select-Many] [Button -> ] [ Select-Many Results | > >>> | | > >>>[Select-Many] [Button -> ] | (across all items on left)| > >>> | | > >>>[TextField] [Button -> ] | ] > >>> > >>>[Button: OK] > >>> > >>> > >>>The select-many's are prefilled with possible results, the text field > >>>lets you manually add results. > >>> > >>>Each of the buttons labelled -> moves the item from the respective > >>>field over to the Results select; this is done using javascript. > >>> > >>>What I'm trying to do using htmlunit is fill in the text field; click > >>>the corresponding button to add it to the results, then click OK. > >>> > >>>This doesn't work for me (no error, just no change is made when I run > >>>the test). > >>> > >>> > >>>I've tried using the following: mainform.submit("name-of-button"); > >>>(both catching the return and using it and ignoring the return value) > >>> > >>>and > >>> > >>>(ClickableElement) getHtmlElementById("id-of-button") .click() (both > >>>catching the return and using it; as well as ignoreing the return > >>>value). > >>> > >>> > >>>Is there some way to get javascript mutation of a HtmlPage/HtmlForm to > >>>work? > >>> > >>>To add further complication; the -> buttons are disabled until there > >>>is an entry selected in the appropriate select-many or there is text > >>>in the text-field. > >>> > >>>-- > >>>Casey > >>> > >>> > >>>------------------------------------------------------- > >>>SF.Net email is sponsored by: Tell us your software development plans! > >>>Take this survey and enter to win a one-year sub to SourceForge.net > >>>Plus IDC's 2005 look-ahead and a copy of this survey > >>>Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > >>>_______________________________________________ > >>>Htmlunit-user mailing list > >>>Htm...@li... > >>>https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >>> > >> > >> > >> > >>------------------------------------------------------- > >>SF.Net email is sponsored by: Tell us your software development plans! > >>Take this survey and enter to win a one-year sub to SourceForge.net > >>Plus IDC's 2005 look-ahead and a copy of this survey > >>Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > >>_______________________________________________ > >>Htmlunit-user mailing list > >>Htm...@li... > >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Tell us your software development plans! > >Take this survey and enter to win a one-year sub to SourceForge.net > >Plus IDC's 2005 look-ahead and a copy of this survey > >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > >_______________________________________________ > >Htmlunit-user mailing list > >Htm...@li... > >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Marc G. <mgu...@ya...> - 2005-04-29 08:16:18
|
changes should be in the HtmlPage you're working on. Marc. Casey Crabb wrote: > I'm using htmlunit-1.5 (the binaries) that I downloaded from > sourceforge about a month ago. > > When javascript is modifying the page (or the form in my case) as a > result of clicking a button in a form (that doesn't actually submit > the form, the javascript method called returns false) where should > those changes show up? In the existing HtmlPage/HtmlForm, or should I > capture to the return value of the click() call? > > -- > Casey > > On Thu, Apr 28, 2005 at 12:03:05PM +0200, Marc Guillemot wrote: > >>Hi Casey, >> >>this seems that htmlunit should be able to do what you want. Which version >>do you use? Can you turn the js log level to debug to get more information? >> >>Marc. >> >>Casey Crabb wrote: >> >>>I have a page where I'm moving elements from one widget to another via >>>javascript: >>> >>>(Pardon the ascii art) >>> >>>[Select-Many] [Button -> ] [ Select-Many Results | >>> | | >>>[Select-Many] [Button -> ] | (across all items on left)| >>> | | >>>[TextField] [Button -> ] | ] >>> >>>[Button: OK] >>> >>> >>>The select-many's are prefilled with possible results, the text field >>>lets you manually add results. >>> >>>Each of the buttons labelled -> moves the item from the respective >>>field over to the Results select; this is done using javascript. >>> >>>What I'm trying to do using htmlunit is fill in the text field; click >>>the corresponding button to add it to the results, then click OK. >>> >>>This doesn't work for me (no error, just no change is made when I run >>>the test). >>> >>> >>>I've tried using the following: mainform.submit("name-of-button"); >>>(both catching the return and using it and ignoring the return value) >>> >>>and >>> >>>(ClickableElement) getHtmlElementById("id-of-button") .click() (both >>>catching the return and using it; as well as ignoreing the return >>>value). >>> >>> >>>Is there some way to get javascript mutation of a HtmlPage/HtmlForm to >>>work? >>> >>>To add further complication; the -> buttons are disabled until there >>>is an entry selected in the appropriate select-many or there is text >>>in the text-field. >>> >>>-- >>>Casey >>> >>> >>>------------------------------------------------------- >>>SF.Net email is sponsored by: Tell us your software development plans! >>>Take this survey and enter to win a one-year sub to SourceForge.net >>>Plus IDC's 2005 look-ahead and a copy of this survey >>>Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >>>_______________________________________________ >>>Htmlunit-user mailing list >>>Htm...@li... >>>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >> >> >> >>------------------------------------------------------- >>SF.Net email is sponsored by: Tell us your software development plans! >>Take this survey and enter to win a one-year sub to SourceForge.net >>Plus IDC's 2005 look-ahead and a copy of this survey >>Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix >>_______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Casey C. <cra...@na...> - 2005-04-28 20:19:09
|
I'm using htmlunit-1.5 (the binaries) that I downloaded from sourceforge about a month ago. When javascript is modifying the page (or the form in my case) as a result of clicking a button in a form (that doesn't actually submit the form, the javascript method called returns false) where should those changes show up? In the existing HtmlPage/HtmlForm, or should I capture to the return value of the click() call? -- Casey On Thu, Apr 28, 2005 at 12:03:05PM +0200, Marc Guillemot wrote: > Hi Casey, > > this seems that htmlunit should be able to do what you want. Which version > do you use? Can you turn the js log level to debug to get more information? > > Marc. > > Casey Crabb wrote: > >I have a page where I'm moving elements from one widget to another via > >javascript: > > > >(Pardon the ascii art) > > > >[Select-Many] [Button -> ] [ Select-Many Results | > > | | > >[Select-Many] [Button -> ] | (across all items on left)| > > | | > >[TextField] [Button -> ] | ] > > > >[Button: OK] > > > > > >The select-many's are prefilled with possible results, the text field > >lets you manually add results. > > > >Each of the buttons labelled -> moves the item from the respective > >field over to the Results select; this is done using javascript. > > > >What I'm trying to do using htmlunit is fill in the text field; click > >the corresponding button to add it to the results, then click OK. > > > >This doesn't work for me (no error, just no change is made when I run > >the test). > > > > > >I've tried using the following: mainform.submit("name-of-button"); > >(both catching the return and using it and ignoring the return value) > > > >and > > > >(ClickableElement) getHtmlElementById("id-of-button") .click() (both > >catching the return and using it; as well as ignoreing the return > >value). > > > > > >Is there some way to get javascript mutation of a HtmlPage/HtmlForm to > >work? > > > >To add further complication; the -> buttons are disabled until there > >is an entry selected in the appropriate select-many or there is text > >in the text-field. > > > >-- > >Casey > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Tell us your software development plans! > >Take this survey and enter to win a one-year sub to SourceForge.net > >Plus IDC's 2005 look-ahead and a copy of this survey > >Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > >_______________________________________________ > >Htmlunit-user mailing list > >Htm...@li... > >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Marc G. <mgu...@ya...> - 2005-04-28 11:29:49
|
Hi, I think that this is due to a configuration problem is htmlunit and should now be fixed in CVS. Marc. Dantes, Ed wrote: > Hi, > > When running htmlunit, I get the following exception: > > exception class = [org.mozilla.javascript.EvaluatorException] > at com.gargoylesoftware.htmlunit.ScriptException: Setter configured > but not implemented for property "name" for > HTMLElement for HtmlImage[<img src = /gem/images/icons/pending.gif> > cant set it to : 1 (js/apytmenu.js#14) > > Anyone come across this??Does it have something to do with images...I > ran this application before with not as much stuff (maybe images), > and it worked fine... > > Thanks > > Ed > |
From: Marc G. <mgu...@ya...> - 2005-04-28 10:01:16
|
Hi Casey, this seems that htmlunit should be able to do what you want. Which version do you use? Can you turn the js log level to debug to get more information? Marc. Casey Crabb wrote: > I have a page where I'm moving elements from one widget to another via > javascript: > > (Pardon the ascii art) > > [Select-Many] [Button -> ] [ Select-Many Results | > | | > [Select-Many] [Button -> ] | (across all items on left)| > | | > [TextField] [Button -> ] | ] > > [Button: OK] > > > The select-many's are prefilled with possible results, the text field > lets you manually add results. > > Each of the buttons labelled -> moves the item from the respective > field over to the Results select; this is done using javascript. > > What I'm trying to do using htmlunit is fill in the text field; click > the corresponding button to add it to the results, then click OK. > > This doesn't work for me (no error, just no change is made when I run > the test). > > > I've tried using the following: mainform.submit("name-of-button"); > (both catching the return and using it and ignoring the return value) > > and > > (ClickableElement) getHtmlElementById("id-of-button") .click() (both > catching the return and using it; as well as ignoreing the return > value). > > > Is there some way to get javascript mutation of a HtmlPage/HtmlForm to work? > > To add further complication; the -> buttons are disabled until there > is an entry selected in the appropriate select-many or there is text > in the text-field. > > -- > Casey > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Casey C. <cra...@na...> - 2005-04-27 23:36:28
|
I have a page where I'm moving elements from one widget to another via javascript: (Pardon the ascii art) [Select-Many] [Button -> ] [ Select-Many Results | | | [Select-Many] [Button -> ] | (across all items on left)| | | [TextField] [Button -> ] | ] [Button: OK] The select-many's are prefilled with possible results, the text field lets you manually add results. Each of the buttons labelled -> moves the item from the respective field over to the Results select; this is done using javascript. What I'm trying to do using htmlunit is fill in the text field; click the corresponding button to add it to the results, then click OK. This doesn't work for me (no error, just no change is made when I run the test). I've tried using the following: mainform.submit("name-of-button"); (both catching the return and using it and ignoring the return value) and (ClickableElement) getHtmlElementById("id-of-button") .click() (both catching the return and using it; as well as ignoreing the return value). Is there some way to get javascript mutation of a HtmlPage/HtmlForm to work? To add further complication; the -> buttons are disabled until there is an entry selected in the appropriate select-many or there is text in the text-field. -- Casey |
From: Marc G. <mgu...@ya...> - 2005-04-27 13:58:49
|
Can you open a bug with your example for this problem. Marc. SALL Ousmane wrote: > Thanks, i have download the current version in CVS but > the value of the input is not the good normally > it's : > http://fr.yahoo.com/?varform2=javascriptModified2 > But the after a submit the > page.getWebResponse().getUrl().toExternalForm()) give > me : > http://www.yahoo.fr?varform2=valform2 > valform2 is the initial value > > --- Marc Guillemot <mgu...@ya...> wrote: > >>Which version of htmlunit do you use? I think that >>this problem is fixed in current CVS. >> >>Marc. >> >>SALL Ousmane wrote: >> >>><html> >>><body> >>><script> >>>function submitForm2() { >>> leform2.varform2.value="javascriptModified2"; >>> leform2.submit(); >>>} >>></script> >>><form action="http://www.yahoo.fr" name="leform2"> >>> <input type="text" name="varform2" >> >>value="valform2"> >> >>> <input type="button" onclick="submitForm2()" >>>value=submit> >>></form> >>></body> >>></html> >>> >>>Excuse with my poor english,I use the htmlUnit jar >> >>for >> >>>getting javascript redirection after submitting a >> >>form >> >>>like the one in the top of this message normaly >> >>the >> >>>URL of the new page would : >>>http://fr.yahoo.com/?varform2=javascriptModified2 >>>But on >>>page.getWebResponse().getUrl().toExternalForm()) >> >>the >> >>>value is : http://fr.yahoo.com/ >>>Or I want to get the new URL with the parameter >> >>of >> >>>the for and new values like a browser do. >>>Here is the part of Java code I use for getting >> >>the >> >>>new URL : >>>List listInput= >>> >> > page.getDocumentElement().getHtmlElementsByTagName("form"); > >>> >>>for (Iterator iter = listInput.iterator(); >>>iter.hasNext();) { >>> HtmlForm formul = (HtmlForm) iter.next(); >>> System.out.println("New URL -> >>> > "+formul.submit().getWebResponse().getUrl().toExternalForm()); > >>>} >>> >>>Thanks for help. >>>--- >>>OSall >>> >>> >>> >>> >>> >>> >>> >> > __________________________________________________________________ > >>>Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace >> >>de stockage pour vos mails ! >> >>>Créez votre Yahoo! Mail sur >> >>http://fr.mail.yahoo.com/ >> >>> >>> > ------------------------------------------------------- > >>>SF.Net email is sponsored by: Tell us your >> >>software development plans! >> >>>Take this survey and enter to win a one-year sub >> >>to SourceForge.net >> >>>Plus IDC's 2005 look-ahead and a copy of this >> >>survey >> >>>Click here to start! >> >>http://www.idcswdc.com/cgi-bin/survey?id=105hix >> >>>_______________________________________________ >>>Htmlunit-user mailing list >>>Htm...@li... >>> >> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >> >> >> > ------------------------------------------------------- > >>SF.Net email is sponsored by: Tell us your software >>development plans! >>Take this survey and enter to win a one-year sub to >>SourceForge.net >>Plus IDC's 2005 look-ahead and a copy of this survey >>Click here to start! >>http://www.idcswdc.com/cgi-bin/survey?id=105hix >>_______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >> > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------ > SALL Ousmane > Etudiant en Master 2 ISIDIS > Université du Littoral Côte d'Opale Calais-FRANCE > Tel: 0675447569/0321828801 > > > > > > > __________________________________________________________________ > Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! > Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: SALL O. <osa...@ya...> - 2005-04-27 13:33:53
|
Thanks, i have download the current version in CVS but the value of the input is not the good normally it's : http://fr.yahoo.com/?varform2=javascriptModified2 But the after a submit the page.getWebResponse().getUrl().toExternalForm()) give me : http://www.yahoo.fr?varform2=valform2 valform2 is the initial value --- Marc Guillemot <mgu...@ya...> wrote: > Which version of htmlunit do you use? I think that > this problem is fixed in current CVS. > > Marc. > > SALL Ousmane wrote: > > <html> > > <body> > > <script> > > function submitForm2() { > > leform2.varform2.value="javascriptModified2"; > > leform2.submit(); > > } > > </script> > > <form action="http://www.yahoo.fr" name="leform2"> > > <input type="text" name="varform2" > value="valform2"> > > <input type="button" onclick="submitForm2()" > > value=submit> > > </form> > > </body> > > </html> > > > > Excuse with my poor english,I use the htmlUnit jar > for > > getting javascript redirection after submitting a > form > > like the one in the top of this message normaly > the > > URL of the new page would : > > http://fr.yahoo.com/?varform2=javascriptModified2 > > But on > > page.getWebResponse().getUrl().toExternalForm()) > the > > value is : http://fr.yahoo.com/ > > Or I want to get the new URL with the parameter > of > > the for and new values like a browser do. > > Here is the part of Java code I use for getting > the > > new URL : > > List listInput= > > > page.getDocumentElement().getHtmlElementsByTagName("form"); > > > > for (Iterator iter = listInput.iterator(); > > iter.hasNext();) { > > HtmlForm formul = (HtmlForm) iter.next(); > > System.out.println("New URL -> > > > "+formul.submit().getWebResponse().getUrl().toExternalForm()); > > } > > > > Thanks for help. > > --- > > OSall > > > > > > > > > > > > > > > __________________________________________________________________ > > Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace > de stockage pour vos mails ! > > Créez votre Yahoo! Mail sur > http://fr.mail.yahoo.com/ > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Tell us your > software development plans! > > Take this survey and enter to win a one-year sub > to SourceForge.net > > Plus IDC's 2005 look-ahead and a copy of this > survey > > Click here to start! > http://www.idcswdc.com/cgi-bin/survey?id=105hix > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software > development plans! > Take this survey and enter to win a one-year sub to > SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! > http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ------ SALL Ousmane Etudiant en Master 2 ISIDIS Université du Littoral Côte d'Opale Calais-FRANCE Tel: 0675447569/0321828801 __________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ |
From: SALL O. <osa...@ya...> - 2005-04-27 12:32:50
|
I'am using the version 1.5 of htmlUnit --- Marc Guillemot <mgu...@ya...> wrote: > Which version of htmlunit do you use? I think that > this problem is fixed in current CVS. > > Marc. > > SALL Ousmane wrote: > > <html> > > <body> > > <script> > > function submitForm2() { > > leform2.varform2.value="javascriptModified2"; > > leform2.submit(); > > } > > </script> > > <form action="http://www.yahoo.fr" name="leform2"> > > <input type="text" name="varform2" > value="valform2"> > > <input type="button" onclick="submitForm2()" > > value=submit> > > </form> > > </body> > > </html> > > > > Excuse with my poor english,I use the htmlUnit jar > for > > getting javascript redirection after submitting a > form > > like the one in the top of this message normaly > the > > URL of the new page would : > > http://fr.yahoo.com/?varform2=javascriptModified2 > > But on > > page.getWebResponse().getUrl().toExternalForm()) > the > > value is : http://fr.yahoo.com/ > > Or I want to get the new URL with the parameter > of > > the for and new values like a browser do. > > Here is the part of Java code I use for getting > the > > new URL : > > List listInput= > > > page.getDocumentElement().getHtmlElementsByTagName("form"); > > > > for (Iterator iter = listInput.iterator(); > > iter.hasNext();) { > > HtmlForm formul = (HtmlForm) iter.next(); > > System.out.println("New URL -> > > > "+formul.submit().getWebResponse().getUrl().toExternalForm()); > > } > > > > Thanks for help. > > --- > > OSall > > > > > > > > > > > > > > > __________________________________________________________________ > > Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace > de stockage pour vos mails ! > > Créez votre Yahoo! Mail sur > http://fr.mail.yahoo.com/ > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Tell us your > software development plans! > > Take this survey and enter to win a one-year sub > to SourceForge.net > > Plus IDC's 2005 look-ahead and a copy of this > survey > > Click here to start! > http://www.idcswdc.com/cgi-bin/survey?id=105hix > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software > development plans! > Take this survey and enter to win a one-year sub to > SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! > http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ------ SALL Ousmane Etudiant en Master 2 ISIDIS Université du Littoral Côte d'Opale Calais-FRANCE Tel: 0675447569/0321828801 __________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ |
From: Marc G. <mgu...@ya...> - 2005-04-27 10:57:20
|
Which version of htmlunit do you use? I think that this problem is fixed in current CVS. Marc. SALL Ousmane wrote: > <html> > <body> > <script> > function submitForm2() { > leform2.varform2.value="javascriptModified2"; > leform2.submit(); > } > </script> > <form action="http://www.yahoo.fr" name="leform2"> > <input type="text" name="varform2" value="valform2"> > <input type="button" onclick="submitForm2()" > value=submit> > </form> > </body> > </html> > > Excuse with my poor english,I use the htmlUnit jar for > getting javascript redirection after submitting a form > like the one in the top of this message normaly the > URL of the new page would : > http://fr.yahoo.com/?varform2=javascriptModified2 > But on > page.getWebResponse().getUrl().toExternalForm()) the > value is : http://fr.yahoo.com/ > Or I want to get the new URL with the parameter of > the for and new values like a browser do. > Here is the part of Java code I use for getting the > new URL : > List listInput= > page.getDocumentElement().getHtmlElementsByTagName("form"); > > for (Iterator iter = listInput.iterator(); > iter.hasNext();) { > HtmlForm formul = (HtmlForm) iter.next(); > System.out.println("New URL -> > "+formul.submit().getWebResponse().getUrl().toExternalForm()); > } > > Thanks for help. > --- > OSall > > > > > > > __________________________________________________________________ > Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! > Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: SALL O. <osa...@ya...> - 2005-04-27 10:01:48
|
<html> <body> <script> function submitForm2() { leform2.varform2.value="javascriptModified2"; leform2.submit(); } </script> <form action="http://www.yahoo.fr" name="leform2"> <input type="text" name="varform2" value="valform2"> <input type="button" onclick="submitForm2()" value=submit> </form> </body> </html> Excuse with my poor english,I use the htmlUnit jar for getting javascript redirection after submitting a form like the one in the top of this message normaly the URL of the new page would : http://fr.yahoo.com/?varform2=javascriptModified2 But on page.getWebResponse().getUrl().toExternalForm()) the value is : http://fr.yahoo.com/ Or I want to get the new URL with the parameter of the for and new values like a browser do. Here is the part of Java code I use for getting the new URL : List listInput= page.getDocumentElement().getHtmlElementsByTagName("form"); for (Iterator iter = listInput.iterator(); iter.hasNext();) { HtmlForm formul = (HtmlForm) iter.next(); System.out.println("New URL -> "+formul.submit().getWebResponse().getUrl().toExternalForm()); } Thanks for help. --- OSall __________________________________________________________________ Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ |
From: Brad C. <yo...@br...> - 2005-04-27 02:41:06
|
The goal of HtmlUnit is the be able to emulate the browsers as closely as possible. It sounds like we're calling onload earlier than browsers are and we should fix that. Any example failing test cases would be very helpful in finding the proper time to call onload. Brad C --- Dave Kosenko <dko...@ve...> wrote: > This may well be beyond the intended functionality scope of HTMLUnit, so do > feel free to > tell me to bugger off... > > I've been having some trouble with a page with javascript - the > functionality contained in the > javascript seems to not be working when run with htmlunit. In particular, > an onload() function > set in the javascript does not execute. > > The code in question (and I must emphasize that this isn't my code, but > rather code inserted > by a 3rd-party software utility to do performance monitoring of web pages) > works as follows: > Javascript in the original html page does a document.write() to bring in 2 > files from the web > server containing additional javascript code. That javascript code in turn > gathers a bunch of data > then does another document.write() to insert more javascript code into the > page. That second > document.write() adds function definitions for window.load() and > window.unload(). > > It seems that as long as the onload function is defined in javascript in > the original html page, the > function gets executed fine. However, with the onload function being set > as a result of the code > added via document.write(), it does not get executed. Tracing the call to > executeOnLoadHandlersIfNeeded > shows that, at the time it is called, the onload function has not yet been > defined. > > So I guess my question is, would this be considered a bug (since the > behavior differs from that in a > browser)? Or is such functionality beyond the current scope of the software? > > Thanks for all the help so far. > Dave > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Dave K. <dko...@ve...> - 2005-04-26 23:46:08
|
This may well be beyond the intended functionality scope of HTMLUnit, so do feel free to tell me to bugger off... I've been having some trouble with a page with javascript - the functionality contained in the javascript seems to not be working when run with htmlunit. In particular, an onload() function set in the javascript does not execute. The code in question (and I must emphasize that this isn't my code, but rather code inserted by a 3rd-party software utility to do performance monitoring of web pages) works as follows: Javascript in the original html page does a document.write() to bring in 2 files from the web server containing additional javascript code. That javascript code in turn gathers a bunch of data then does another document.write() to insert more javascript code into the page. That second document.write() adds function definitions for window.load() and window.unload(). It seems that as long as the onload function is defined in javascript in the original html page, the function gets executed fine. However, with the onload function being set as a result of the code added via document.write(), it does not get executed. Tracing the call to executeOnLoadHandlersIfNeeded shows that, at the time it is called, the onload function has not yet been defined. So I guess my question is, would this be considered a bug (since the behavior differs from that in a browser)? Or is such functionality beyond the current scope of the software? Thanks for all the help so far. Dave |
From: Dantes, E. <Ed....@gd...> - 2005-04-26 21:57:58
|
Hi, When running htmlunit, I get the following exception: exception class =3D [org.mozilla.javascript.EvaluatorException] at com.gargoylesoftware.htmlunit.ScriptException: Setter configured but not implemented for property "name" for HTMLElement for HtmlImage[<img src =3D /gem/images/icons/pending.gif> cant set it to : 1 (js/apytmenu.js#14) Anyone come across this??Does it have something to do with images...I ran this application before with not as much stuff (maybe images), and it worked fine... Thanks Ed |
From: Dave K. <dko...@ve...> - 2005-04-26 20:14:29
|
At 04:00 PM 4/26/2005, you wrote: >http://htmlunit.sourceforge.net/logging.html > >http://htmlunit.sourceforge.net/xref/com/gargoylesoftware/htmlunit/html/HtmlPage.html#943 Thanks a million!! Dave |
From: Brad C. <yo...@br...> - 2005-04-26 20:00:50
|
http://htmlunit.sourceforge.net/logging.html http://htmlunit.sourceforge.net/xref/com/gargoylesoftware/htmlunit/html/HtmlPage.html#943 --- Dave Kosenko <dko...@ve...> wrote: > Thanks for the response. > > I understand that onunload would not work from the docs at > sourceforge. However, I am finding that > the onload function is not being called either, or at least not fully. It > is not throwing any exceptions, > so there must be something else going on (or not going on, as the case may > be). Is there any way to > get a trace on what is being done during the getPage() call to see where > things may be failing? > > I can also tell you that accessing the page via several different browsers > does result in the full execution > of the onload code, so it is does not look to be a problem with the > javascript code. > > Might I also ask for a pointer to where in the source the handler for the > onload event is implemented? > > Thanks again, > Dave > > At 03:18 PM 4/26/2005, you wrote: > >What's in your test should be enough--once you have the HtmlPage reference any > >onload code and redirects should have already executed. JS > >methods/properties are > >added as needed one at a time so most likely you've found something we > >have not > >implemented yet (for example, there is nothing special being done for > >onunload so > >that will likely never happen). > > > >Brad C > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Dave K. <dko...@ve...> - 2005-04-26 19:49:37
|
Thanks for the response. I understand that onunload would not work from the docs at sourceforge. However, I am finding that the onload function is not being called either, or at least not fully. It is not throwing any exceptions, so there must be something else going on (or not going on, as the case may be). Is there any way to get a trace on what is being done during the getPage() call to see where things may be failing? I can also tell you that accessing the page via several different browsers does result in the full execution of the onload code, so it is does not look to be a problem with the javascript code. Might I also ask for a pointer to where in the source the handler for the onload event is implemented? Thanks again, Dave At 03:18 PM 4/26/2005, you wrote: >What's in your test should be enough--once you have the HtmlPage reference any >onload code and redirects should have already executed. JS >methods/properties are >added as needed one at a time so most likely you've found something we >have not >implemented yet (for example, there is nothing special being done for >onunload so >that will likely never happen). > >Brad C |
From: Brad C. <yo...@br...> - 2005-04-26 19:18:22
|
What's in your test should be enough--once you have the HtmlPage reference any onload code and redirects should have already executed. JS methods/properties are added as needed one at a time so most likely you've found something we have not implemented yet (for example, there is nothing special being done for onunload so that will likely never happen). Brad C --- Dave Kosenko <dko...@ve...> wrote: > Thanks for the response. I was really more interested in whether the > javascript was legit or not. I have > worked around the problem by recoding the javascript - not ideal, but it > will work for me. > > I do seem to have a broader problem I would like to ask about. It appears > that using > webClient.getPage(url); on the page in question (with recoded javascript) > does not fully execute > the javascript. Again, this is not my code, but the gist of the > functionality is: > - original javascript embedded in page pulls down a larger javascript file > from the server using > document.write() > - this additional javascript sets functions for window.onload() and > window.onunload() (as seen in my > previous question) > - these functions call a bunch of other functions, the ultimate result of > which is to fire off a message > to another server to report some performance stats > > I'm snooping the NIC on the server that receives the performance data and I > am not seeing any indication > of a connection from the server running htmlunit. I understand that the > onunload() would not be run as > there is currently no event handler for it, but I thought the onload() > would be run. > > Let me ask, fundamentally, is the code below enough to be accomplishing > what I expect? Or do I need > to do more to actually execute the onload function? > > Thanks, > Dave > > At 04:06 AM 4/26/2005, Marc Guillemot wrote: > >Hi Dave, > > > >the problem seems to come from the syntax "function window::onLoad()". > >Trying following code: > > > > > >in Mozilla, Firefox and IE, it only works with IE and I get the same > >errors in Mozilla and Firefox as the one reported > >by htmlunit. Therefore I guess that your server generates other javascript > >for an non IE browser. What happens if you > >simulate Mozilla with htmlunit to visit your page? > > > >I have to say that it is the first time that I see this syntax but > >htmlunit should support it when simulating IE as it > >is supported by IE. Not sure of Rhino (the underlying javascript engine) > >can do it. Please open a bug issue for it. > > > >If you want to simulate IE and can't change the js delivered by the > >server, you can write a ScriptPreProcessor to adapt > >the js before it is executed by htmlunit changing for instance > >function window::onLoad() { IE_OnLoad(); } > >to > >window.onload = function() { IE_OnLoad(); } > > > >Marc. > > > > > import junit.framework.TestCase; > > > import com.gargoylesoftware.htmlunit.*; > > > import com.gargoylesoftware.htmlunit.html.*; > > > import java.net.*; > > > > > > public class test1 extends TestCase { > > > > > > public static void main(String[] args) { > > > > > > System.setProperty("com.gargoylesoft.htmlunit.javascript", "debug"); > > > System.out.println("Start test:"); > > > System.out.println("Using URL="+args[0]); > > > for (int i=0; i<=100000; i++){ > > > System.out.print("Run: "); > > > System.out.println(i); > > > try { > > > testSearch(args[0]); > > > } catch (Exception e){ > > > System.out.println("Got an exception"); > > > System.out.println(e.getMessage()); > > > } > > > } > > > } > > > > > > public static void testSearch(String urltouse) throws Exception { > > > final WebClient webClient = new > > > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > > > final URL url = new URL(urltouse); > > > final HtmlPage page = (HtmlPage)webClient.getPage(url); > > > } > > > > > > > > > } |
From: Dave K. <dko...@ve...> - 2005-04-26 17:44:42
|
Thanks for the response. I was really more interested in whether the javascript was legit or not. I have worked around the problem by recoding the javascript - not ideal, but it will work for me. I do seem to have a broader problem I would like to ask about. It appears that using webClient.getPage(url); on the page in question (with recoded javascript) does not fully execute the javascript. Again, this is not my code, but the gist of the functionality is: - original javascript embedded in page pulls down a larger javascript file from the server using document.write() - this additional javascript sets functions for window.onload() and window.onunload() (as seen in my previous question) - these functions call a bunch of other functions, the ultimate result of which is to fire off a message to another server to report some performance stats I'm snooping the NIC on the server that receives the performance data and I am not seeing any indication of a connection from the server running htmlunit. I understand that the onunload() would not be run as there is currently no event handler for it, but I thought the onload() would be run. Let me ask, fundamentally, is the code below enough to be accomplishing what I expect? Or do I need to do more to actually execute the onload function? Thanks, Dave At 04:06 AM 4/26/2005, Marc Guillemot wrote: >Hi Dave, > >the problem seems to come from the syntax "function window::onLoad()". >Trying following code: > > >in Mozilla, Firefox and IE, it only works with IE and I get the same >errors in Mozilla and Firefox as the one reported >by htmlunit. Therefore I guess that your server generates other javascript >for an non IE browser. What happens if you >simulate Mozilla with htmlunit to visit your page? > >I have to say that it is the first time that I see this syntax but >htmlunit should support it when simulating IE as it >is supported by IE. Not sure of Rhino (the underlying javascript engine) >can do it. Please open a bug issue for it. > >If you want to simulate IE and can't change the js delivered by the >server, you can write a ScriptPreProcessor to adapt >the js before it is executed by htmlunit changing for instance >function window::onLoad() { IE_OnLoad(); } >to >window.onload = function() { IE_OnLoad(); } > >Marc. > > > import junit.framework.TestCase; > > import com.gargoylesoftware.htmlunit.*; > > import com.gargoylesoftware.htmlunit.html.*; > > import java.net.*; > > > > public class test1 extends TestCase { > > > > public static void main(String[] args) { > > > > System.setProperty("com.gargoylesoft.htmlunit.javascript", "debug"); > > System.out.println("Start test:"); > > System.out.println("Using URL="+args[0]); > > for (int i=0; i<=100000; i++){ > > System.out.print("Run: "); > > System.out.println(i); > > try { > > testSearch(args[0]); > > } catch (Exception e){ > > System.out.println("Got an exception"); > > System.out.println(e.getMessage()); > > } > > } > > } > > > > public static void testSearch(String urltouse) throws Exception { > > final WebClient webClient = new > > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > > final URL url = new URL(urltouse); > > final HtmlPage page = (HtmlPage)webClient.getPage(url); > > } > > > > > > } |
From: Ducloux V. <vdu...@co...> - 2005-04-26 09:50:50
|
Hi everyone, once again I'm asking for help.... After filling one form, i do a submit, and then i do : page =3D (HtmlPage) webClient.getPage(url2); BUT, when i do this, I get the following error ! Refresh Aborted by HtmlUnit: Attempted to refresh a page using an=20 ImmediateRefreshHandler which could have caused an OutOfMemoryError=20 Please use WaitingRefreshHandler or ThreadedRefreshHandler instead. java.lang.RuntimeException: Refresh Aborted by HtmlUnit: Attempted to=20 refresh a page using an ImmediateRefreshHandler which could have caused=20 an OutOfMemoryError Please use WaitingRefreshHandler or=20 ThreadedRefreshHandler instead. at=20 com.gargoylesoftware.htmlunit.ImmediateRefreshHandler.handleRefresh(Immed= iateRefreshHandler.java:75) at=20 com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPa= ge.java:1044) at=20 com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:159) at=20 com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.jav= a:701) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:361= ) at=20 com.gargoylesoftware.htmlunit.ImmediateRefreshHandler.handleRefresh(Immed= iateRefreshHandler.java:77) at=20 com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPa= ge.java:1044) at=20 com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:159) at=20 com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.jav= a:701) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:361= ) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:400= ) at=20 fr.cosmosbay.mrs.ducloux.HtmlUnitTest.testLogin(HtmlUnitTest.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at=20 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTes= tRunner.java:436) at=20 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunn= er.java:311) at=20 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRun= ner.java:192) So following the error, I do this : WaitingRefreshHandler wrh =3D new WaitingRefreshHandler(); wrh.handleRefresh(page,url2,1); I even tried doing this : ThreadedRefreshHandler trh =3D new ThreadedRefreshHandler(); /trh.handleRefresh(page,url2,1); BUT I don't arrive to correct page !!! Does anyone have an idea on how to fix this problem !? thanks in advance ! --=20 Victor Ducloux | Stagiaire T=E9l portable : +33 6 60 41 76 03 *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - www.cosmosbay-vectis= .com T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |