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-01-13 10:28:21
|
Have you tryed adding to the classpath all the jars provided in htmlunit distribution? Marc. wenrong.chen wrote: > Hello, > > I got a problem when I'm using htmlunit for testing,while the test case is very > simple listed bellow. > > import com.gargoylesoftware.htmlunit.WebClient; > import com.gargoylesoftware.htmlunit.html.HtmlPage; > public class SimpleTest extends junit.framework.TestCase { > > public void testSimple() throws Exception { > WebClient webClient = new WebClient(); > java.net.URL url = > new java.net.URL("http://htmlunit.sourceforge.net"); > HtmlPage page = (HtmlPage)webClient.getPage(url); > } > } > > Suppose I toggle command for sentence > "HtmlPage page = (HtmlPage)webClient.getPage(url);", then it works well. > > otherwise, it will raise an error when I choose to test it in eclipse > clicking RUN->Junit Test. > > "NoClassDefFoundError" is generated, I wonder whether I missed some packages > besides junit.jar and htmlunit.jar > > I've searched both in the mailing lists and google, but there is no suggestion. > As a rookie to use this tool, I need your help. > > Thanks ! > > > > > Failure infomation listed bellow: > > java.lang.NoClassDefFoundError: org/apache/commons/httpclient/URIException > at com.gargoylesoftware.htmlunit.WebClient.getWebConnection > (WebClient.java:251) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse > (WebClient.java:1401) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:549) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:477) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:349) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) > at FormTest.testForm(FormTest.java:26) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > (RemoteTestRunner.java:421) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run > (RemoteTestRunner.java:305) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main > (RemoteTestRunner.java:186) > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: wenrong.chen <rog...@in...> - 2005-01-13 09:56:15
|
Hello, I got a problem when I'm using htmlunit for testing,while the test case i= s very=20 simple listed bellow. import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class SimpleTest extends junit.framework.TestCase { =20 public void testSimple() throws Exception { WebClient webClient =3D new WebClient(); java.net.URL url =3D new java.net.URL("http://htmlunit.sourceforge.net"); HtmlPage page =3D (HtmlPage)webClient.getPage(url); } } Suppose I toggle command for sentence "HtmlPage page =3D (HtmlPage)webClient.getPage(url);", then it works well= . otherwise, it will raise an error when I choose to test it in eclipse clicking RUN->Junit Test. "NoClassDefFoundError" is generated, I wonder whether I missed some packa= ges=20 besides junit.jar and htmlunit.jar I've searched both in the mailing lists and google, but there is no sugge= stion. As a rookie to use this tool, I need your help. Thanks ! Failure infomation listed bellow: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/URIExceptio= n at com.gargoylesoftware.htmlunit.WebClient.getWebConnection (WebClient.java:251) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse (WebClient.java:1401) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:549) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:477) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:349) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) at FormTest.testForm(FormTest.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:421) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java:305) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (RemoteTestRunner.java:186) |
From: Mike B. <mb...@Ga...> - 2005-01-12 12:18:58
|
Mandaris Moore wrote: >I've been playing around with htmlunit in my spare time trying to get >something together. I would greatly appreciate it if someone would >help me come up with a stand alone example that doesn't a great deal >of knowledge about maven or junit. Something real simple where you >only have to compile and run it alone or through one of junit's test >runners. > > Take a look at the samples on the "getting started" page. The only things that require junit are the various assert methods. If you remove them then you could run those same samples from a simple java main method. http://htmlunit.sourceforge.net/gettingStarted.html If you're using the packaged version of HtmlUnit (ie you're not building from source) then you don't need to use maven. Hope this helps -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mbr...@vi...> - 2005-01-12 04:00:09
|
> There are also several projects that are taking new versions from > the source > tree since that is where the changes are being added to fix their > problems. > As such, it works better to have more often release which are bug > fixes and > marked as true releases rather than the semi-releases that you > see for major > changes. I am maintaining such a project. For several months we have been using various patched versions of HtmlUnit extracted from CVS at random points. With the release of 1.4 we are back to using an official release, because it contains all the patches we require. So I'm all for frequent releases. |
From: Erskine, C. <chr...@ed...> - 2005-01-12 02:36:09
|
Try looking at the Get Started page for HtmlUnit. HtmlUnit is an extension of JUnit and as such, you run your test using a JUnit test runner. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-265-5962 > -----Original Message----- > From: htm...@li... [mailto:htmlunit-user- > ad...@li...] On Behalf Of Mandaris Moore > Sent: Tuesday, January 11, 2005 7:22 PM > To: htm...@li... > Subject: [Htmlunit-user] Stand alone example > > I've been playing around with htmlunit in my spare time trying to get > something together. I would greatly appreciate it if someone would > help me come up with a stand alone example that doesn't a great deal > of knowledge about maven or junit. Something real simple where you > only have to compile and run it alone or through one of junit's test > runners. > > Thank you and I apologize if this seems a little remedial but I feel > it would help me and anyone else who might want to start using > htmlunit. > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Mandaris M. <ahe...@gm...> - 2005-01-12 02:22:16
|
I've been playing around with htmlunit in my spare time trying to get something together. I would greatly appreciate it if someone would help me come up with a stand alone example that doesn't a great deal of knowledge about maven or junit. Something real simple where you only have to compile and run it alone or through one of junit's test runners. Thank you and I apologize if this seems a little remedial but I feel it would help me and anyone else who might want to start using htmlunit. |
From: David D.K. <ddk...@ki...> - 2005-01-11 14:43:51
|
Eric S. Raymond sums it up here: Release early, release often http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/ ar01s04.html Dave On Jan 11, 2005, at 6:39 AM, Mike Bowler wrote: > Mike Bresnahan wrote: > >> This release took me by surprise. I didn't see any discussion about >> when >> 1.4 would be released. Why did you not release a 1.4-pre1? > > One of the committers proposed a release a couple of days ago and > there seemed to be general agreement. I believe that the long > pre-release cycle for 1.3 was a mistake - it went on for far too long > - so this time we're doing a much faster release. If we get feedback > that this was too fast then we'll adjust again for the next release. |
From: Erskine, C. <chr...@ed...> - 2005-01-11 13:14:28
|
What is happening is that you are creating a release. With the work that is going into HtmlUnit, it is growing organically rather than by a planned model where I will state that this version has these features planned for it. As such, I do not feel that it really make sense having pre releases or release candidates like you see for some other systems. There are also several projects that are taking new versions from the source tree since that is where the changes are being added to fix their problems. As such, it works better to have more often release which are bug fixes and marked as true releases rather than the semi-releases that you see for major changes. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-265-5962 > -----Original Message----- > From: htm...@li... [mailto:htmlunit-user- > ad...@li...] On Behalf Of Mike Bowler > Sent: Tuesday, January 11, 2005 5:40 AM > To: htm...@li... > Subject: Re: [Htmlunit-user] HtmlUnit 1.4 released > > Mike Bresnahan wrote: > > >This release took me by surprise. I didn't see any discussion about when > >1.4 would be released. Why did you not release a 1.4-pre1? > > > > > > One of the committers proposed a release a couple of days ago and there > seemed to be general agreement. I believe that the long pre-release > cycle for 1.3 was a mistake - it went on for far too long - so this time > we're doing a much faster release. If we get feedback that this was too > fast then we'll adjust again for the next release. > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : mb...@Ga... > Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Mike B. <mb...@Ga...> - 2005-01-11 12:39:24
|
Mike Bresnahan wrote: >This release took me by surprise. I didn't see any discussion about when >1.4 would be released. Why did you not release a 1.4-pre1? > > One of the committers proposed a release a couple of days ago and there seemed to be general agreement. I believe that the long pre-release cycle for 1.3 was a mistake - it went on for far too long - so this time we're doing a much faster release. If we get feedback that this was too fast then we'll adjust again for the next release. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mbr...@vi...> - 2005-01-11 02:35:25
|
> HtmlUnit 1.4 has been released. Thanks to everyone who has contributed. Cool! Thanks for all the work. This release took me by surprise. I didn't see any discussion about when 1.4 would be released. Why did you not release a 1.4-pre1? |
From: Mike B. <mb...@Ga...> - 2005-01-09 20:53:15
|
HtmlUnit 1.4 has been released. Thanks to everyone who has contributed. Change log at http://htmlunit.sourceforge.net/changes-report.html -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Brad C. <yo...@br...> - 2005-01-05 16:28:43
|
I initially wanted to use jwebunit for it's pre-existing FIT fixture but found many limitations in httpunit that made it nearly unusable for our needs. In general I think httpunit is much more suited to unit testing and htmlunit is better for integration/acceptance testing, mostly due to the intimate knowledge of forms that seems to be required with httpunit. Brad C --- Mandaris Moore <ahe...@gm...> wrote: > Hello, > I'm an intern assigned to the task of finding an efficient way to test > some of the web applications that my company makes. After looking > around I discover HtmlUnit. I was wondering why so many of you have > choosen this tool versus something else such as jWebUnit or regular > httpUnit. > > If you know of any other (free) tools please let me know about what > you think of those as well. > > Thank you |
From: Marc G. <mgu...@ya...> - 2005-01-05 12:49:49
|
I have no experience with jWebUnit and can't say anything about it. What httpunit concerns: htmlunit javascript support is really better and the source code is really clear and well written in comparison with httpunit. This is an important argument when you come to the limit of the tool and need to perform some fix by yourself. Have you had a look at webtest: http://webtest.canoo.com? Marc. |
From: Mandaris M. <ahe...@gm...> - 2005-01-05 01:06:03
|
Hello, I'm an intern assigned to the task of finding an efficient way to test some of the web applications that my company makes. After looking around I discover HtmlUnit. I was wondering why so many of you have choosen this tool versus something else such as jWebUnit or regular httpUnit. If you know of any other (free) tools please let me know about what you think of those as well. Thank you |
From: David D.K. <ddk...@ki...> - 2005-01-04 14:59:15
|
I think form.submit() will submit the form *without* actually "clicking" the Login button. It may sound counter-intuitive, but some web applications (esp. Jakarta Struts) require the button value to be submitted so that they know what action the user took. (I realize the web site is using ASP[X], but it may work in a similar fashion.) Try to get an object for the Login button (using the form object or the page object), then call click() on the Login button object, the see if the page object returned is what you're expecting. Remember, you must think like the web browser, or in other words, WWMWBD: "What would my web browser do?" :) Dave On Jan 4, 2005, at 8:36 AM, Vitor George wrote: > I riped off those lines, and changed the method form.click() to > form.submit(), but I still get the login page (Login.aspx) back. > > > On Mon, 3 Jan 2005 21:15:59 -0600, David D. Kilzer > <ddk...@ki...> wrote: > >> Why don't you want the result of submitting the login form? Instead, >> you're throwing away the result of the login form and replacing it >> with >> a new web page: >> >> // fetch and print the initial page >> url = new URL("http://www.orkut.com/Home.aspx"); >> page = (HtmlPage) client.getPage(url); >> >> Try commenting out the above two lines of code and see if you get the >> results you want. >> >> Dave > |
From: Vitor G. <vit...@gm...> - 2005-01-04 14:37:11
|
I riped off those lines, and changed the method form.click() to form.submit(), but I still get the login page (Login.aspx) back. On Mon, 3 Jan 2005 21:15:59 -0600, David D. Kilzer <ddk...@ki...> wrote: > Why don't you want the result of submitting the login form? Instead, > you're throwing away the result of the login form and replacing it with > a new web page: > > // fetch and print the initial page > url = new URL("http://www.orkut.com/Home.aspx"); > page = (HtmlPage) client.getPage(url); > > Try commenting out the above two lines of code and see if you get the > results you want. > > Dave > > > On Jan 3, 2005, at 2:28 PM, Vitor George wrote: > > > Hi Brad, > > > > I've tried using the full-featured browser, and got the same error. > > > > The result of code attached is always the login form, because of the > > automatic redirect. > > > > Vitor > > > > > > On Mon, 3 Jan 2005 10:41:03 -0800 (PST), Brad Clarke > > <yo...@br...> wrote: > >> What do you get back? Have you tried not setting a specific browser > >> version and > >> using the default full-featured browser? > >> > >> Brad C > >> > >> --- Vitor George <vit...@gm...> wrote: > >> > >>> Hi, > >>> > >>> I'm trying to develop an Orkut Bot, that will gather information > >>> about > >>> friends and communities. Look at the code bellow: > >>> > >>> > >>> final WebClient client = new WebClient(BrowserVersion.MOZILLA_1_0); > >>> final HtmlPage page = (HtmlPage)client.getPage(new > >>> URL("http://www.orkut.com/Login.aspx") ); > >>> final HtmlForm form = page.getFormByName("f"); > >>> form.setAttributeValue("u", "username"); > >>> form.setAttributeValue("p", "password"); > >>> page = (HtmlPage)form.click(); > >>> System.out.println(page.asText()); > >>> > >>> When I execute this code, I can't get the initial page, Home.aspx. I > >>> followed the instructions about using JSSE, but the problem > >>> continues. > >>> > >>> Can anyone help me? > >>> > >>> Thanks, > >>> Vitor. > >>> > >> > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: David D.K. <ddk...@ki...> - 2005-01-04 03:16:48
|
Why don't you want the result of submitting the login form? Instead, you're throwing away the result of the login form and replacing it with a new web page: // fetch and print the initial page url = new URL("http://www.orkut.com/Home.aspx"); page = (HtmlPage) client.getPage(url); Try commenting out the above two lines of code and see if you get the results you want. Dave On Jan 3, 2005, at 2:28 PM, Vitor George wrote: > Hi Brad, > > I've tried using the full-featured browser, and got the same error. > > The result of code attached is always the login form, because of the > automatic redirect. > > Vitor > > > On Mon, 3 Jan 2005 10:41:03 -0800 (PST), Brad Clarke > <yo...@br...> wrote: >> What do you get back? Have you tried not setting a specific browser >> version and >> using the default full-featured browser? >> >> Brad C >> >> --- Vitor George <vit...@gm...> wrote: >> >>> Hi, >>> >>> I'm trying to develop an Orkut Bot, that will gather information >>> about >>> friends and communities. Look at the code bellow: >>> >>> >>> final WebClient client = new WebClient(BrowserVersion.MOZILLA_1_0); >>> final HtmlPage page = (HtmlPage)client.getPage(new >>> URL("http://www.orkut.com/Login.aspx") ); >>> final HtmlForm form = page.getFormByName("f"); >>> form.setAttributeValue("u", "username"); >>> form.setAttributeValue("p", "password"); >>> page = (HtmlPage)form.click(); >>> System.out.println(page.asText()); >>> >>> When I execute this code, I can't get the initial page, Home.aspx. I >>> followed the instructions about using JSSE, but the problem >>> continues. >>> >>> Can anyone help me? >>> >>> Thanks, >>> Vitor. >>> >> > |
From: Vitor G. <vit...@gm...> - 2005-01-03 20:28:17
|
Hi Brad, I've tried using the full-featured browser, and got the same error. The result of code attached is always the login form, because of the automatic redirect. Vitor On Mon, 3 Jan 2005 10:41:03 -0800 (PST), Brad Clarke <yo...@br...> wrote: > What do you get back? Have you tried not setting a specific browser version and > using the default full-featured browser? > > Brad C > > --- Vitor George <vit...@gm...> wrote: > > > Hi, > > > > I'm trying to develop an Orkut Bot, that will gather information about > > friends and communities. Look at the code bellow: > > > > > > final WebClient client = new WebClient(BrowserVersion.MOZILLA_1_0); > > final HtmlPage page = (HtmlPage)client.getPage(new > > URL("http://www.orkut.com/Login.aspx") ); > > final HtmlForm form = page.getFormByName("f"); > > form.setAttributeValue("u", "username"); > > form.setAttributeValue("p", "password"); > > page = (HtmlPage)form.click(); > > System.out.println(page.asText()); > > > > When I execute this code, I can't get the initial page, Home.aspx. I > > followed the instructions about using JSSE, but the problem continues. > > > > Can anyone help me? > > > > Thanks, > > Vitor. > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Brad C. <yo...@br...> - 2005-01-03 18:41:18
|
What do you get back? Have you tried not setting a specific browser version and using the default full-featured browser? Brad C --- Vitor George <vit...@gm...> wrote: > Hi, > > I'm trying to develop an Orkut Bot, that will gather information about > friends and communities. Look at the code bellow: > > > final WebClient client = new WebClient(BrowserVersion.MOZILLA_1_0); > final HtmlPage page = (HtmlPage)client.getPage(new > URL("http://www.orkut.com/Login.aspx") ); > final HtmlForm form = page.getFormByName("f"); > form.setAttributeValue("u", "username"); > form.setAttributeValue("p", "password"); > page = (HtmlPage)form.click(); > System.out.println(page.asText()); > > When I execute this code, I can't get the initial page, Home.aspx. I > followed the instructions about using JSSE, but the problem continues. > > Can anyone help me? > > Thanks, > Vitor. > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Vitor G. <vit...@gm...> - 2005-01-03 17:40:10
|
Hi, I'm trying to develop an Orkut Bot, that will gather information about friends and communities. Look at the code bellow: final WebClient client = new WebClient(BrowserVersion.MOZILLA_1_0); final HtmlPage page = (HtmlPage)client.getPage(new URL("http://www.orkut.com/Login.aspx") ); final HtmlForm form = page.getFormByName("f"); form.setAttributeValue("u", "username"); form.setAttributeValue("p", "password"); page = (HtmlPage)form.click(); System.out.println(page.asText()); When I execute this code, I can't get the initial page, Home.aspx. I followed the instructions about using JSSE, but the problem continues. Can anyone help me? Thanks, Vitor. |
From: Erskine, C. <chr...@ed...> - 2004-12-17 15:55:56
|
Or even better, develop a patch to add the functionality and submit it. As a bug, it will take time for someone to pick it up and look at it. As a patch, we will try to get it in even sooner. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-265-5962 > -----Original Message----- > From: htm...@li... [mailto:htmlunit-user- > ad...@li...] On Behalf Of Marc Guillemot > Sent: Friday, December 17, 2004 8:41 AM > To: htm...@li... > Subject: Re: [Htmlunit-user] Javascript error document.domain.indexOf > > Hi, > > > i started to play around with htmlunit and got the error listed at the > > end of my post when loading a page. ( btw. 'mydomain.de' exists in my > > network :-) ) > > The domain property of object document is not currently implemented in > htmlunit. > > > Is there something missing in the JS implementation, and is there a way > > to implement it if is? > > yes it can be implemented and should not be too complicate. You can open a > bug issue. > > > (of course there is always a way :-) ... but is is possible for one > > person to get into the implementation in a few hours) > > ... > > Marc. > > > ------------------------------------------------------- > 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://productguide.itmanagersjournal.com/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Marc G. <mgu...@ya...> - 2004-12-17 15:41:36
|
Hi, > i started to play around with htmlunit and got the error listed at the > end of my post when loading a page. ( btw. 'mydomain.de' exists in my > network :-) ) The domain property of object document is not currently implemented in htmlunit. > Is there something missing in the JS implementation, and is there a way > to implement it if is? yes it can be implemented and should not be too complicate. You can open a bug issue. > (of course there is always a way :-) ... but is is possible for one > person to get into the implementation in a few hours) ... Marc. |
From: <ral...@em...> - 2004-12-17 15:33:06
|
<html><style>p {margin: 0px}</style><body bgcolor='#ffffff' style='font-size:9pt; font-family:Verdana; font-family: Verdana' ><P>Hi,</P><P>i started to play around with htmlunit and got the error listed at the end of my post when loading a page. ( btw. 'mydomain.de' exists in my network :-) )</P><P>Is there something missing in the JS implementation, and is there a way to implement it if is?</P><P>(of course there is always a way :-) ... but is is possible for one person to get into the implementation in a few hours)</P><P>Regards, Ralf</P><P> </P><P> </P><P>======= EXCEPTION START ========<BR>EcmaError: lineNumber=[1] column=[0] lineSource=[if (document.domain.indexOf('mydomain.de') != -1) {] name=[ConversionError] sourceName=[Embedded script] message=[The undefined value has no properties.] errorObject=[ConversionError: The undefined value has no properties.]<BR>com.gargoylesoftware.htmlunit.ScriptException: The undefined value has no properties.<! BR> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:280)<BR> at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:713)<BR> at com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:274)<BR> at com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233)<BR> at org.cyberneko.html.filters.DefaultFilter.endElement(Unknown Source)<BR> at org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown Source)<BR> at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source)<BR> at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source)<BR> at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown Source)<BR> at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source)<BR> at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source)<BR> at org.cyberneko.html.HTMLConfiguration.parse(Unknown ! Source)<BR> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<BR> at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:302)<BR> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:223)<BR> at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:110)<BR> at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:82)<BR> at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:583)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281)<BR> at testhttpunit.testHomePage(testhttpunit.java:23)<BR> at testhttpunit.main(testhttpunit.java:36)<BR> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native! Method)<BR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<BR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<BR> at java.lang.reflect.Method.invoke(Method.java:585)<BR> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)<BR>Enclosed exception: <BR>ConversionError: The undefined value has no properties. (Embedded script; line 1)<BR> at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)<BR> at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557)<BR> at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:712)<BR> at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2035)<BR> at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62)<BR> at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55)<BR> at org.mozilla.javascript.Cont! ext.evaluateReader(Context.java:820)<BR> at org.mozilla.javascrip t.Context.evaluateString(Context.java:784)<BR> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:272)<BR> at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:713)<BR> at com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:274)<BR> at com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233)<BR> at org.cyberneko.html.filters.DefaultFilter.endElement(Unknown Source)<BR> at org.cyberneko.html.filters.NamespaceBinder.endElement(Unknown Source)<BR> at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source)<BR> at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source)<BR> at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown Source)<BR> at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source)<BR> at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source)<BR> at org.cyber! neko.html.HTMLConfiguration.parse(Unknown Source)<BR> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<BR> at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:302)<BR> at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:223)<BR> at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:110)<BR> at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:82)<BR> at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:583)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337)<BR> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281)<BR> at testhttpunit.testHomePage(testhttpunit.java:23)<BR! > at testhttpunit.main(testhttpunit.java:36)<BR> at sun.refl ect.NativeMethodAccessorImpl.invoke0(Native Method)<BR> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<BR> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<BR> at java.lang.reflect.Method.invoke(Method.java:585)<BR> at com.intellij.rt.execution.application.AppMain.main(Unknown Source)<BR>== CALLING JAVASCRIPT ==<BR>if (document.domain.indexOf('mydomain.de') != -1) {<BR>document.domain = 'mydomain.de';<BR>}<BR>======= EXCEPTION END ========<BR>Process terminated with exit code 0</P></body></html> |
From: Marc G. <mgu...@ya...> - 2004-12-13 08:52:12
|
> BTW if you weren't aware, any committer should be able to update the > site content via maven. The command is "maven site:deploy" and only > requires that you set your sourceforge username up in project > properties. I think the property is maven.username but if it isn't > there then maven will tell you what to set. In fact I first wanted to know if I was the only one seeing such information as useful. Marc. |
From: Mike B. <mb...@Ga...> - 2004-12-11 04:33:18
|
Marc Guillemot wrote: > PS: perhaps could we add a rubric on the website with links to article > about htmlunit? Sounds good. Getting a wiki on the site so that everyone can contribute content would be good too ;-) We've talked about this before but I haven't had the time to look for possible solutions. BTW if you weren't aware, any committer should be able to update the site content via maven. The command is "maven site:deploy" and only requires that you set your sourceforge username up in project properties. I think the property is maven.username but if it isn't there then maven will tell you what to set. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |