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: <mbr...@vi...> - 2004-03-23 17:40:04
|
The following does not appear to work in 1.3-pre1. System.getProperties().put ("org.apache.commons.logging.simplelog.defaultlog", "warn"); I still get INFO messages from httpclient. Is there a different method of configuring the logging level in 1.3? Mike Bresnahan |
From: <mbr...@vi...> - 2004-03-23 17:12:47
|
HtmlUnit 1.3 is a lot slower than I remember the older versions being. It is taking about a second for each page visit on a PIII 1.0Ghz desktop. I only have 10 tests and I'm up to 40-50 seconds total run time. I did some quick profiling of the code and found that a majority of the time is being spent in the Nekohtml layer. Is this a known problem? Mike Bresnahan |
From: Mike B. <mb...@Ga...> - 2004-03-23 17:01:16
|
mbr...@vi... wrote: > So my current thoery is that ASP.NET thinks > that HtmlUnit is an IE compliant browser. Yes. By default, HtmlUnit pretends to be IE. > I remember there being a way of > configuring the browser identity of HtmlUnit. new WebClient( BrowserVersion.MOZILLA_1_0 ) Or create your own BrowserVersion instance with the appropriate values. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <mbr...@vi...> - 2004-03-23 16:30:52
|
After some research I believe the Validation controls are IE specific and are supposed to be disabled when using any other browser (typical Microsoft tactic). I tested this with Netscape 7.1 and found that yes indeed the validation controls are disabled. So my current thoery is that ASP.NET thinks that HtmlUnit is an IE compliant browser. I remember there being a way of configuring the browser identity of HtmlUnit. Perhaps that will fix the problem. Mike Bresnahan Quoting Brad Clarke <bc...@bo...>: > At 10:29 AM 3/22/2004, mbr...@vi... wrote: > >Hello again. I have been away from the HtmlUnit seen for some months now. > I > >am now back at writing a test suite for a ASP.NET application. Things have > >changed since I last used HtmlUnit. I downloaded the latest sources from > CVS > >and found that much of my old code doesn't compile anymore. In > >particular, the > >method HtmlPage.getOneHtmlElementByAttribute() is gone. What is it's > >replacement? > > Some of HtmlPage's functionality was moved due to some DOM changes (I don't > understand most of it myself). If you can't find something that used to be > on HtmlPage look under HtmlPage.getDocumentElement(). Your method is: > > > HtmlPage.getDocumentElement().getOneHtmlElementByAttribute(...) > > >I see some classes with "xpath" in their name. Does HtmlUnit now > >have xpath support? I'm sorry if this is a FAQ, but I didn't find > >anything in > >the list archive. > > Yes it does. Here's an example (for you and the archive :p): > > final HtmlUnitXPath xpath = new > HtmlUnitXPath(xpathExpression); > HtmlElement element = (HtmlElement) > xpath.selectSingleNode(currentHtmlPage); > > >I also found that I had to download maven and add the following jars to the > >classpath to get the source to compile using JBuilder. > >... > > I never did...all the jelly stuff just fails for me. One of these days I > might add it to the ant build.xml, but I think I'd rather see good maven > support in Eclipse :) > > >One last thing, which is also an issue with 1.2.3, is that > >HtmlImageInput.click > >() does not cause the enclosing form to get posted. I had to call > >HtmlImageInput.click(0,0). Is this by design? > > The code looks like it will submit either way now. Try the nightly build > and log a bug if it doesn't. > > >I have not had time to create a nice test case, but I have found that in > >general HtmlUnit cannot deal with ASP.NET Validators (e.g. > >System.Web.UI.WebControls.CompareValidator). HtmlUnit blows up in the > >JavaScript produced by ASP.NET. > > Try the nightly build first, but if that doesn't help can you provide more > information about the javascript? I don't have an ASP.NET project to play > with. > > Brad C |
From: <al...@go...> - 2004-03-23 12:33:38
|
Hello Brad and all. I have submitted couple of patches in January, but they are still waiting for approvement. There are by the way some 'lost' methods fixes, and as I remember, method HtmlPage.getOneHtmlElementByAttribute() too. One interesting thing is init order for framesets: if pages of the frameset update each other locations in 'onLoad' javascript, the regular htmlunit dies with javascript exception. The patch fixes it. (One thing remains to check: if one of the pages in the Frameset is a frameset itself ...) Would be nice if somebody would take a look at the patches. For the 1.2.3 users: there is a special patch for 1.2.3 called smt. with *jascript*1_2_3* that contains some more javascript support (including init order for framesets and so on.) and that can be used with the regular htmlunit 1.2.3 jar file: simply add the jar from the patch to the classpath BEFORE htmlunit 1.2.3 jar. So if your 1.2.3 dies from javascript exception there is still a (small) chance that it will work with the patch. Regards Alexei |
From: Brad C. <bc...@bo...> - 2004-03-22 22:07:33
|
At 10:29 AM 3/22/2004, mbr...@vi... wrote: >Hello again. I have been away from the HtmlUnit seen for some months now. I >am now back at writing a test suite for a ASP.NET application. Things have >changed since I last used HtmlUnit. I downloaded the latest sources from CVS >and found that much of my old code doesn't compile anymore. In >particular, the >method HtmlPage.getOneHtmlElementByAttribute() is gone. What is it's >replacement? Some of HtmlPage's functionality was moved due to some DOM changes (I don't understand most of it myself). If you can't find something that used to be on HtmlPage look under HtmlPage.getDocumentElement(). Your method is: HtmlPage.getDocumentElement().getOneHtmlElementByAttribute(...) >I see some classes with "xpath" in their name. Does HtmlUnit now >have xpath support? I'm sorry if this is a FAQ, but I didn't find >anything in >the list archive. Yes it does. Here's an example (for you and the archive :p): final HtmlUnitXPath xpath = new HtmlUnitXPath(xpathExpression); HtmlElement element = (HtmlElement) xpath.selectSingleNode(currentHtmlPage); >I also found that I had to download maven and add the following jars to the >classpath to get the source to compile using JBuilder. >... I never did...all the jelly stuff just fails for me. One of these days I might add it to the ant build.xml, but I think I'd rather see good maven support in Eclipse :) >One last thing, which is also an issue with 1.2.3, is that >HtmlImageInput.click >() does not cause the enclosing form to get posted. I had to call >HtmlImageInput.click(0,0). Is this by design? The code looks like it will submit either way now. Try the nightly build and log a bug if it doesn't. >I have not had time to create a nice test case, but I have found that in >general HtmlUnit cannot deal with ASP.NET Validators (e.g. >System.Web.UI.WebControls.CompareValidator). HtmlUnit blows up in the >JavaScript produced by ASP.NET. Try the nightly build first, but if that doesn't help can you provide more information about the javascript? I don't have an ASP.NET project to play with. Brad C |
From: <mbr...@vi...> - 2004-03-22 21:42:16
|
I have not had time to create a nice test case, but I have found that in general HtmlUnit cannot deal with ASP.NET Validators (e.g. System.Web.UI.WebControls.CompareValidator). HtmlUnit blows up in the JavaScript produced by ASP.NET. Mike Bresnahan |
From: <mbr...@vi...> - 2004-03-22 16:29:26
|
Hello again. I have been away from the HtmlUnit seen for some months now. I am now back at writing a test suite for a ASP.NET application. Things have changed since I last used HtmlUnit. I downloaded the latest sources from CVS and found that much of my old code doesn't compile anymore. In particular, the method HtmlPage.getOneHtmlElementByAttribute() is gone. What is it's replacement? I see some classes with "xpath" in their name. Does HtmlUnit now have xpath support? I'm sorry if this is a FAQ, but I didn't find anything in the list archive. I also found that I had to download maven and add the following jars to the classpath to get the source to compile using JBuilder. commons-jelly-20030902.160215.jar commons-jelly-tags-ant-20030625.032346.jar commons-jelly-tags-define-20030211.142932.jar commons-jelly-tags-util-20030211.141939.jar commons-jexl-1.0-beta-1.jar dom4j-1.4-dev-8.jar One last thing, which is also an issue with 1.2.3, is that HtmlImageInput.click () does not cause the enclosing form to get posted. I had to call HtmlImageInput.click(0,0). Is this by design? Thank you very much for your ongoing efforts! Mike Bresnahan |
From: Mike B. <mb...@Ga...> - 2004-03-19 20:06:24
|
Brad Clarke wrote: > I've updated the title in CVS so it will be fixed the next time the site > is generated. Thanks for the heads up :) I've regenerated the site. There are 33 failing tests for some reason but I don't have time to dig into that right now - hopefully on the weekend. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Brad C. <bc...@bo...> - 2004-03-19 19:25:18
|
At 12:55 PM 3/19/2004, you wrote: >Im an HtmlUnit newbie, completely. Definitely excited about the potential >of HtmlUnit, as we are using JUnit quite successfully, and Silk is being >used by QA. We need web-level testing controlled and regularly run by our >programmers, and Im hoping that HtmlUnit will do the trick. That's exactly what we're using it for (though I let CruiseControl run it for me) >Anyway, I found that just getting started was a little harder than >expected. First, there was no complete file, just fragments. There are some tests in com.gargoylesoftware.htmlunit.SanityCheck. Not exactly obvious though... >It was not clear which URL class was to be used (Eclipse found >org.apache.catalina.util.URL and java.util.URL). org.apache.catalina.util.URL doesn't look like it's part of HtmlUnit so I don't think there's a lot we can do for you here. The compiler should complain if you use the wrong one though ;) >Then, when I ran the fragment, I got the ScriptException fortunately, I >found the fix several months into the archive. What was the fix? Is it something that should be on the web pages? >And finally, the title on the page had changed, so the test didnt work. I've updated the title in CVS so it will be fixed the next time the site is generated. Thanks for the heads up :) >Does anyone know why I cant run javascript from the page? Is it the >google ads again, as in the October 03 thread? Or something I am doing >wrong, like only using the minimally required jars? It seems to work fine with the code in CVS. Try the nightly build and see if that helps (another thing that will be on the web site next time it gets generated): http://htmlunit.sourceforge.net/nightly/ Brad C |
From: Jim L. <jli...@ad...> - 2004-03-19 18:55:19
|
I'm an HtmlUnit newbie, completely. Definitely excited about the potential of HtmlUnit, as we are using JUnit quite successfully, and Silk is being used by QA. We need web-level testing controlled and regularly run by our programmers, and I'm hoping that HtmlUnit will do the trick. =20 BTW, another guy here was messing with Cactus, but found it difficult to use. I don't know many details, but are people on this list using Cactus successfully, or have you found it a pain in the neck? =20 Anyway, I found that just getting started was a little harder than expected. First, there was no complete file, just fragments. It was not clear which URL class was to be used (Eclipse found org.apache.catalina.util.URL and java.util.URL). It wasn't clear if we should extend TestCase or womething else. Then, when I ran the fragment, I got the ScriptException - fortunately, I found the fix several months into the archive. And finally, the title on the page had changed, so the test didn't work. =20 Does anyone know why I can't run javascript from the page? Is it the google ads again, as in the October '03 thread? Or something I am doing wrong, like only using the minimally required jars? =20 Finally, I think it would be helpful to post an entire minimal file that people could use to get started. Here is one: =20 // Change the package for your development environment package com.advisorsoftware.webtier.htmlunit; =20 =20 import java.net.URL; =20 import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlPage; =20 import junit.framework.TestCase; =20 /** * @author jlindsay * The purpose of this class is to get HtmlUnit running. Note that you must=20 * have the set of HtmlUnit required jars in your classpath, along with junit.jar, * for this to work. */ public class TestHtmlUnit extends TestCase { public void testHomePage()=20 throws Exception=20 { final WebClient webClient =3D new WebClient(); final URL url =3D new = URL("http://htmlunit.sourceforge.net"); =20 webClient.setJavaScriptEnabled(false); final HtmlPage page =3D (HtmlPage)webClient.getPage(url); =20 assertEquals( "htmlunit - Welcome to HtmlUnit", page.getTitleText()); } } =20 =20 |
From: Mike B. <mb...@Ga...> - 2004-02-25 12:21:13
|
pascal NICOLAS wrote: > How can I collect a new HtmlPage object obj2 which is > updated after the action on the obj1 ? I don't think I understand the problem. You already have the top level page which contains two frames. You can ask each one of those frames for their content (another Page). What are you trying to do that you are having trouble with? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <pas...@ya...> - 2004-02-25 09:28:17
|
Hi, I load a page which contains 2 frames(one left and one right). An action of first frame updates the page of the second frame. I load correctly the parent html page with 2 frames and collects correctly each frame of pages with the getFrames() method. When I execute an action on the first frame(obj1), the second frame is updated. The problem is to collect the second frame after the update on the second frame. to be more clear : obj0 => parent HtmlPage contains 2 frames obj1 => first frame of obj0 obj1 => second frame of obj0 1: obj0 ==> getFrames ==> (2 obj HtmlPage : obj1 and obj2) 2: check a <SELECT> and execute a JavaScript on obj1 => this action udpates the second page of frame. obj2 is the object before the update. ==> How to get the new obj2 ? How can I collect a new HtmlPage object obj2 which is updated after the action on the obj1 ? Pascal. Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout ! Créez votre adresse sur http://mail.yahoo.fr |
From: <pas...@ya...> - 2004-02-20 14:04:42
|
Thanks Mike, It was the first case. I should execute javascript code before. It works as I want now. Thanks, Pascal. --- Mike Bowler <mb...@Ga...> a écrit : > pascal NICOLAS wrote: > > To explain what I want to do : > > load page 1 => simulate click => load result html > page > > after my click => change forms value => submit > the > > form of my second page => collect the third page > => > > ../.. > > If the first page and the second page are the same > physical object (ie > page1 === page2) then there was some javascript > executed during the > click and the page didn't actually get sent to the > server. > > If the two pages contain the same data but are > different java objects > then that means you made two requests to the server. > > Can you identify which one was the case here? > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : > mb...@Ga... > Fax : (416) 822-0975 | Website: > http://www.GargoyleSoftware.com > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps > Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ |
From: Mike B. <mb...@Ga...> - 2004-02-20 12:04:04
|
pascal NICOLAS wrote: > To explain what I want to do : > load page 1 => simulate click => load result html page > after my click => change forms value => submit the > form of my second page => collect the third page => > ../.. If the first page and the second page are the same physical object (ie page1 === page2) then there was some javascript executed during the click and the page didn't actually get sent to the server. If the two pages contain the same data but are different java objects then that means you made two requests to the server. Can you identify which one was the case here? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <pas...@ya...> - 2004-02-20 11:22:47
|
I tried to be more clear on my explanation. java.net.URL url = new java.net.URL("http://eluard/sasprod"); WebClient webClient = new WebClient() ; HtmlPage page = (HtmlPage) webClient.getPage(url); logt(page.toString()); try { java.util.List l = page.getAllForms() ; HtmlForm form = (HtmlForm)l.get(0) ; HtmlButtonInput buttonInput = (HtmlButtonInput) form.getInputByName("Valider"); HtmlPage secondpage = (HtmlPage)form.submit() ; logt("a => "+buttonInput.getOnClickAttribute()) ; logt(secondpage.toString()); logt(secondpage.getAllForms().toString()) ; logt("URL=> "+secondpage.getWebResponse().getUrl().toString()) ; } catch(com.gargoylesoftware.htmlunit.ElementNotFoundException ex) { logt("Form not found") ; } In this example, If I understood correctly. 1- I load the first page : http://eluard/sasprod (I verified, it's ok) 2- I collect the form of the first page (I verified, it's ok) 3- I click on the button (I don't know if it's ok) 4- I receive the new page in the object "secondpage". The problem appears with this new page. If I tested the url or I dump the content of this page, I receive the contents of my first page and not the contents of the second. I don't understand why. To explain what I want to do : load page 1 => simulate click => load result html page after my click => change forms value => submit the form of my second page => collect the third page => ../.. I hope that it's more clear. Pascal. Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ |
From: Mike B. <mb...@Ga...> - 2004-02-18 12:16:55
|
pascal NICOLAS wrote: > For moment, I load and click correctly the button of > my first page and I don't receive the new html content > of page in an HtmlPage object. Can you be more specific about what *does* happen? Is an exception being thrown? Is the wrong page being returned? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <pas...@ya...> - 2004-02-17 15:10:24
|
Hi All, I'm a new user of htmlunit ressources and it's a beginner question. For example, I would like to load an first url, click on a button of it, collect the new page in a HtmlPage and submit the form of the second page. For moment, I load and click correctly the button of my first page and I don't receive the new html content of page in an HtmlPage object. example: /***************************************************/ java.net.URL url = new java.net.URL("http://local/test.html"); WebClient webClient = new WebClient() ; HtmlPage page = (HtmlPage) webClient.getPage(url); try { HtmlForm form = page.getFormByName( "DEBUT" ); HtmlButtonInput buttonInput = (HtmlButtonInput) form.getInputByName("Validate"); HtmlPage newpage = (HtmlPage)buttonInput.click(); logt("title of second page :"+newpage.getTitleText()) ; } catch(com.gargoylesoftware.htmlunit.ElementNotFoundException ex) { logt("Form non trouvée") ; } /***************************************************/ I think that it's a very simple problem but I don't find for moment. Can you help me on it ? Best Regards, Pascal. Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ |
From: Mike B. <mb...@Ga...> - 2004-02-04 12:44:37
|
Darius Cooper wrote: > After some more debugging, I find that "xyz" was used in a javascript > *with* clause. > The pages work fine in Mozzila and IE, but the page blows up when it is > read into HTMLUnit. You're getting into parts of javascript that I'm not familiar with. The core javascript language is implemented by the Mozilla Rhino engine so if it supports "with" clauses then HtmlUnit should as well. The parts of javascript support that we maintain are the browser specific host objects such as Document, Window, Location etc. The language itself is all handled by Rhino. Hopefully someone else can jump in with a more helpful answer. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Darius C. <dar...@ho...> - 2004-02-03 16:12:03
|
After some more debugging, I find that "xyz" was used in a javascript *with* clause. The pages work fine in Mozzila and IE, but the page blows up when it is read into HTMLUnit. Any clues? - Darius >>I'm new to *htmlunit*. While trying it on one of our web applications, it >>is giving me a "ReferenceError" in a JavaScript function saying: [ "xyz" >>is not defined ]. >> "xyz" is a JavaScript function defined in another source. >> The page that is giving me an error contains the following: >> >> <SCRIPT language=JavaScript src="common.js" >>type=text/javascript></SCRIPT> >> >>So, I figure that "common.js" is not being resolved. >> _________________________________________________________________ Let the new MSN Premium Internet Software make the most of your high-speed experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1 |
From: Darius C. <dar...@ho...> - 2004-02-02 21:15:16
|
Hi, I'm new to *htmlunit*. While trying it on one of our web applications, it is giving me a "ReferenceError" in a JavaScript function saying: [ "xyz" is not defined ]. "xyz" is a JavaScript function defined in another source. The page that is giving me an error contains the following: <SCRIPT language=JavaScript src="common.js" type=text/javascript></SCRIPT> So, I figure that "common.js" is not being resolved. 1) Is this something that is not supported by htmlunit? 2) If supported, any clues to why it may not be working ... what I might be doing wrong. thanks, - Darius _________________________________________________________________ What are the 5 hot job markets for 2004? Click here to find out. http://msn.careerbuilder.com/Custom/MSN/CareerAdvice/WPI_WhereWillWeFindJobsIn2004.htm?siteid=CBMSN3006&sc_extcmp=JS_wi08_dec03_hotmail1 |
From: lists <li...@ob...> - 2004-01-29 08:26:10
|
> From: Mike Bowler > Sent: Thursday, January 22, 2004 5:45 PM > > Redirects certainly should be working. What kind of a redirect is it? I don't know. I'm looking into this. > What version of HtmlUnit are you using? I'm using 1.3pre1 I've isolated the code to reproduce this into one test. Maybe I'm missing something in the set up. So below is the test that fails on the second assert. Is there anything obviously wrong with this code? Thanks in advance, -Mark -------------------------------------------------------------- public void testLogon() throws Exception { WebClient webClient = new WebClient(); webClient.setRedirectEnabled(true); URL url = new URL(DEFAULT_URL); HtmlPage page = (HtmlPage) webClient.getPage(url); assertEquals("initial",INITIAL_TITLE,page.getTitleText()); final HtmlForm form = (HtmlForm)page.getFormByName("Login"); final HtmlTextInput userField = (HtmlTextInput) form.getInputByName(USER_NAME_LABEL); userField.setValueAttribute(username); final HtmlPasswordInput pwField = (HtmlPasswordInput) form.getInputByName(PWD_LABEL); pwField.setValueAttribute(password); page = (HtmlPage)form.submit(); assertEquals("redirected",EXPECTED_TITLE, page.getTitleText()); // fails assert } -------------------------------------------------------------- |
From: Olivier F. <oli...@ne...> - 2004-01-23 09:31:33
|
as far as i know redirect does nothing (set it to true or false, it is = not managed yet) -----Message d'origine----- De : lists [mailto:li...@ob...] Envoy=E9 : jeudi 22 janvier 2004 16:04 =C0 : htm...@li... Objet : [Htmlunit-user] Redirect requested but followRedirects is disabled Redirects are not working for me. In the code I write: . webClient =3D new WebClient(); . webClient.setRedirectEnabled(true); But then I get the messages below. =20 What does this mean? -Mark =20 --------------------------------------------------------------------- Jan 22, 2004 9:46:28 AM org.apache.commons.httpclient.HttpMethodBase=20 readResponse INFO: Discarding unexpected response: HTTP/1.1 100 Continue Jan 22, 2004 9:46:28 AM org.apache.commons.httpclient.HttpMethodBase=20 processRedirectResponse INFO: Redirect requested but followRedirects is disabled Jan 22, 2004 9:46:29 AM org.apache.commons.httpclient.HttpMethodBase=20 processRedirectResponse INFO: Redirect requested but followRedirects is disabled Jan 22, 2004 9:46:29 AM org.apache.commons.httpclient.HttpMethodBase=20 processRedirectResponse INFO: Redirect requested but followRedirects is disabled ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Mike B. <mb...@Ga...> - 2004-01-23 01:44:50
|
Please don't cross post to both the mailing lists. > Redirects are not working for me. > In the code I write: > . webClient = new WebClient(); > . webClient.setRedirectEnabled(true); Redirects certainly should be working. What kind of a redirect is it? Redirects can be initiated by http response code, html meta tag, http response header or even javascript in an onload handler and to the best of my knowledge all of those ways are currently working in 1.3pre1. What version of HtmlUnit are you using? If you are using something earlier than 1.3pre1 then I'd recommend upgrading. > But then I get the messages below. > What does this mean? > INFO: Redirect requested but followRedirects is disabled FAQ: http://htmlunit.sourceforge.net/faq.html -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: lists <li...@ob...> - 2004-01-22 23:33:20
|
Redirects are not working for me. In the code I write: . webClient = new WebClient(); . webClient.setRedirectEnabled(true); But then I get the messages below. What does this mean? -Mark --------------------------------------------------------------------- Jan 22, 2004 9:46:28 AM org.apache.commons.httpclient.HttpMethodBase readResponse INFO: Discarding unexpected response: HTTP/1.1 100 Continue Jan 22, 2004 9:46:28 AM org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled Jan 22, 2004 9:46:29 AM org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled Jan 22, 2004 9:46:29 AM org.apache.commons.httpclient.HttpMethodBase processRedirectResponse INFO: Redirect requested but followRedirects is disabled |