You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(10) |
Aug
(30) |
Sep
(15) |
Oct
(26) |
Nov
(12) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(27) |
Mar
(73) |
Apr
(17) |
May
(17) |
Jun
(78) |
Jul
(67) |
Aug
(60) |
Sep
(89) |
Oct
(140) |
Nov
(173) |
Dec
(46) |
2004 |
Jan
(39) |
Feb
(7) |
Mar
(21) |
Apr
(31) |
May
(13) |
Jun
(86) |
Jul
(14) |
Aug
(14) |
Sep
(53) |
Oct
(184) |
Nov
(186) |
Dec
(319) |
2005 |
Jan
(336) |
Feb
(274) |
Mar
(226) |
Apr
(102) |
May
(196) |
Jun
(130) |
Jul
(119) |
Aug
(143) |
Sep
(76) |
Oct
(85) |
Nov
(70) |
Dec
(159) |
2006 |
Jan
(125) |
Feb
(100) |
Mar
(80) |
Apr
(39) |
May
(55) |
Jun
(58) |
Jul
(50) |
Aug
(76) |
Sep
(55) |
Oct
(101) |
Nov
(163) |
Dec
(85) |
2007 |
Jan
(56) |
Feb
(53) |
Mar
(180) |
Apr
(221) |
May
(290) |
Jun
(199) |
Jul
(322) |
Aug
(515) |
Sep
(121) |
Oct
(297) |
Nov
(177) |
Dec
(103) |
2008 |
Jan
(516) |
Feb
(315) |
Mar
(586) |
Apr
(615) |
May
(197) |
Jun
(381) |
Jul
(390) |
Aug
(195) |
Sep
(603) |
Oct
(499) |
Nov
(622) |
Dec
(350) |
2009 |
Jan
(313) |
Feb
(338) |
Mar
(507) |
Apr
(317) |
May
(197) |
Jun
(375) |
Jul
(235) |
Aug
(424) |
Sep
(410) |
Oct
(338) |
Nov
(286) |
Dec
(306) |
2010 |
Jan
(367) |
Feb
(339) |
Mar
(371) |
Apr
(172) |
May
(233) |
Jun
(264) |
Jul
(421) |
Aug
(110) |
Sep
(218) |
Oct
(189) |
Nov
(185) |
Dec
(168) |
2011 |
Jan
(145) |
Feb
(213) |
Mar
(205) |
Apr
(64) |
May
(159) |
Jun
(67) |
Jul
(104) |
Aug
(126) |
Sep
(144) |
Oct
(106) |
Nov
(154) |
Dec
(225) |
2012 |
Jan
(111) |
Feb
(87) |
Mar
(131) |
Apr
(102) |
May
(180) |
Jun
(160) |
Jul
(412) |
Aug
(315) |
Sep
(311) |
Oct
(369) |
Nov
(464) |
Dec
(284) |
2013 |
Jan
(343) |
Feb
(165) |
Mar
(174) |
Apr
(120) |
May
(153) |
Jun
(134) |
Jul
(202) |
Aug
(105) |
Sep
(228) |
Oct
(332) |
Nov
(192) |
Dec
(219) |
2014 |
Jan
(348) |
Feb
(194) |
Mar
(189) |
Apr
(188) |
May
(297) |
Jun
(206) |
Jul
(79) |
Aug
(279) |
Sep
(111) |
Oct
(159) |
Nov
(61) |
Dec
(78) |
2015 |
Jan
(152) |
Feb
(145) |
Mar
(239) |
Apr
(223) |
May
(248) |
Jun
(296) |
Jul
(172) |
Aug
(189) |
Sep
(338) |
Oct
(217) |
Nov
(131) |
Dec
(184) |
2016 |
Jan
(118) |
Feb
(221) |
Mar
(414) |
Apr
(412) |
May
(303) |
Jun
(133) |
Jul
(129) |
Aug
(121) |
Sep
(136) |
Oct
(67) |
Nov
(89) |
Dec
(245) |
2017 |
Jan
(349) |
Feb
(90) |
Mar
(328) |
Apr
(430) |
May
(284) |
Jun
(199) |
Jul
(164) |
Aug
(120) |
Sep
(57) |
Oct
(105) |
Nov
(108) |
Dec
(146) |
2018 |
Jan
(85) |
Feb
(48) |
Mar
(97) |
Apr
(62) |
May
(64) |
Jun
(136) |
Jul
(123) |
Aug
(87) |
Sep
(17) |
Oct
(27) |
Nov
(9) |
Dec
(16) |
2019 |
Jan
(9) |
Feb
(17) |
Mar
(18) |
Apr
(14) |
May
(8) |
Jun
|
Jul
(6) |
Aug
(12) |
Sep
(5) |
Oct
|
Nov
(2) |
Dec
|
2020 |
Jan
(8) |
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
(6) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: James H. <jw...@al...> - 2002-12-11 20:33:42
|
I'm exploring some different unit test frameworks for our web application. I've looked at HttpUnit and I've just started looking at HtmlUnit. The one thing I haven't been able to find in HtmlUnit is support for cookies. In order to test our application I really need to have cookie support. Does HtmlUnit support cookies and if not, is it planned for the near future? Thanks. |
From: Mike B. <mb...@Ga...> - 2002-12-11 15:30:24
|
> This explains why I'm getting the error; now I'm wondering why no one else is. Perhaps you're using a tag or combination of tags that is causing NekoHTML to follow a code path that nobody else has hit yet. If you can send me your html and java test, I'll try it on my machine to see if I can reproduce it here. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Ryan C. <ry...@AS...> - 2002-12-11 15:04:43
|
I was originally using all the jars that came with htmlunit. After downloading 0.7.1 of Neko, still no luck. After getting the latest xerces, still no luck. org.cyberneko.html.parsers.DOMParser.<init> calls org.apache.xerces.parsers.DOMParser(XMLParserConfiguration), which doesn't exist. This explains why I'm getting the error; now I'm wondering why no one else is. Ryan org.cyberneko.html.parsers.DOMParser.<init> htm...@li... wrote: > Date: Tue, 10 Dec 2002 14:53:06 -0500 > From: Mike Bowler <mb...@Ga...> > Organization: Gargoyle Software > To: htm...@li... > Subject: Re: [HtmlUnit] Error using WebClient.getPage(URL) > > Hi Ryan, > > > Any idea why this might be happening? > > > > Exception in thread "main" java.lang.NoSuchMethodError > > at org.cyberneko.html.parsers.DOMParser.<init>(Unknown Source) > > Off hand, no but Neko recently put out 0.7.1 to fix some bugs. First > thing I'd try is replacing the version of NekoHTML that you have with > the latest to see if that fixes the problem. Assuming that you're using > the last release of HtmlUnit (ie not what's in cvs), you'll be using > NekoHTML 0.6.8. Cvs has the latest version. > > The url for NekoHTML is > http://www.apache.org/~andyc/neko/doc/html/index.html > > Next thing I'd check would be that you're either using the version of > xerces that comes with HtmlUnit or something newer. NekoHTML uses > xerces and may be expecting an api that isn't present in earlier versions. > > Let me know if this helps. |
From: Mike B. <mb...@Ga...> - 2002-12-10 19:56:28
|
Hi Ryan, > Any idea why this might be happening? > > Exception in thread "main" java.lang.NoSuchMethodError > at org.cyberneko.html.parsers.DOMParser.<init>(Unknown Source) Off hand, no but Neko recently put out 0.7.1 to fix some bugs. First thing I'd try is replacing the version of NekoHTML that you have with the latest to see if that fixes the problem. Assuming that you're using the last release of HtmlUnit (ie not what's in cvs), you'll be using NekoHTML 0.6.8. Cvs has the latest version. The url for NekoHTML is http://www.apache.org/~andyc/neko/doc/html/index.html Next thing I'd check would be that you're either using the version of xerces that comes with HtmlUnit or something newer. NekoHTML uses xerces and may be expecting an api that isn't present in earlier versions. Let me know if 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: Ryan C. <ry...@AS...> - 2002-12-10 19:39:03
|
Any idea why this might be happening? Exception in thread "main" java.lang.NoSuchMethodError at org.cyberneko.html.parsers.DOMParser.<init>(Unknown Source) at com.gargoylesoftware.htmlunit.html.HtmlPage.createDocument(HtmlPage.java:208) at com.gargoylesoftware.htmlunit.html.HtmlPage.<init>(HtmlPage.java:82) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:45) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:315) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:238) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:180) at test.Test.main(Test.java:34) ----- Here's the code: WebClient wc = new WebClient(); URL url = new URL("http://www.google.com"); Page p = wc.getPage(url); |
From: Mike B. <mb...@Ga...> - 2002-12-05 00:26:56
|
> Does anyone have any code samples for interacting with javascript > alerts and prompt boxes? TIA. Code using alerts is all throughout the test code. I use it extensively when testing new javascript features. If all you want to do it track alerts to make sure they happened, you can collect them into a CollectingAlertHandler like this. final List collectedAlerts = new ArrayList(); webClient.setAlertHandler(new CollectingAlertHandler(collectedAlerts)); All the messages will be put into the list as they happen. I use this all the time when testing. If you want to actually do something when the alert happens then create a class that implements AlertHandler and pass it in. Prompts are handled like this webClient.setPromptHandler( new PromptHandler() { public String handlePrompt( final Page page, final String message ) { // do something return "Flintstone"; } } ); 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. <mb...@Ga...> - 2002-12-04 23:10:30
|
Hi David, >But my site still gives me an error: Can you send me the html and javascript? There isn't enough in what you posted to figure out what's wrong. It seems to be complaining that "-->" isn't legal javascript. Are you wrapping your javascript in html comments? >webConversation.getClientProperties().setApplicationID("Netscape", > "msie", "4"); > >Any suggestions on how to emulate the HttpUnit line in HtmlUnit? TIA. You've already done that when you specified the BrowserVersion. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Goudreau, D. <DGo...@qr...> - 2002-12-04 23:08:58
|
Does anyone have any code samples for interacting with javascript alerts and prompt boxes? TIA. =========================== David M. Goudreau Senior Test Automation Engineer dgo...@qr... QRS Corporation x14742 |
From: Goudreau, D. <DGo...@qr...> - 2002-12-04 22:45:25
|
I'm trying to emulate MSIE 5, which I did with the following statement: final WebClient webClient = new WebClient(new BrowserVersion( "Microsoft Internet Explorer", "4.0 (compatible; MSIE 5.5; Windows NT 5.0; YComp 5.0.2.6)", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; YComp 5.0.2.6)", "1.2" )); But my site still gives me an error: 1) testAddSelectionCode(TestAddSelectionCodesHtmlUnit)EcmaError: lineNumber=[45] column=[3] lineSource=[-->] name=[SyntaxError] sourceName=[/QRSGUI/Login/browserCheckClient.js] message=[syntax error] errorObject=[SyntaxError: syntax error] com.gargoylesoftware.htmlunit.ScriptException: syntax error The Javascript seems to work fine outside of HtmlUnit. Also, in HttpUnit, I'm able to pass the browser check with the following line: webConversation.getClientProperties().setApplicationID("Netscape", "msie", "4"); Any suggestions on how to emulate the HttpUnit line in HtmlUnit? TIA. =========================== David M. Goudreau Senior Test Automation Engineer dgo...@qr... QRS Corporation x14742 |
From: <Mik...@su...> - 2002-11-26 19:46:00
|
Here's a patch that fixes a intermittent problem I've been having for a long time using HtmlUnit to test a application running in the WebSphere Test Environment within WebSphere Application Developer 4.0.3. The problem occurs during a HTTP redirect when HttpClient returns a value for the location header that is a comma delimited list. The patch changes HtmlUnit to ignore everything after the first value in the list. The code in HttpClient that creates the comma delimited list is in org.apache.commons.httpclient.HttpMethodBase.readResponseHeaders(). The code includes the following comment which is interesting but not enlightening. * "It must be possible to combine the multiple header fields into one * "field-name: field-value" pair, without changing the semantics of the * message, by appending each subsequent field-value to the first, each * separated by a comma." - HTTP/1.0 (4.3) Mike Bresnahan Index: src/java/com/gargoylesoftware/htmlunit/WebClient.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java,v retrieving revision 1.23 diff -c -r1.23 WebClient.java *** src/java/com/gargoylesoftware/htmlunit/WebClient.java 20 Nov 2002 22:19:00 -0000 1.23 --- src/java/com/gargoylesoftware/htmlunit/WebClient.java 26 Nov 2002 19:33:39 -0000 *************** *** 904,910 **** try { locationString = webResponse.getResponseHeaderValue ("Location"); if( locationString != null ) { ! newUrl = expandUrl( url, locationString ); } } catch( final MalformedURLException e ) { --- 904,918 ---- try { locationString = webResponse.getResponseHeaderValue ("Location"); if( locationString != null ) { ! // HttpClient sometimes returns a delimited list of values where the delimiter is a comma. ! // We'll take a guess and go with the first value. ! int indexOfComma = locationString.indexOf(','); ! if( indexOfComma >= 0) { ! newUrl = expandUrl( url, locationString.substring(0, indexOfComma)); ! } ! else { ! newUrl = expandUrl( url, locationString); ! } } } catch( final MalformedURLException e ) { |
From: Mike B. <mb...@Ga...> - 2002-11-25 14:44:07
|
This is the first official release with JavaScript support. Because adding a reasonable level of JavaScript support was such a large effort, this release has been a long time coming. Future releases will likely contain smaller chunks of functionality and will therefore be released more frequently. The full change log can be found at http://htmlunit.sourceforge.net/changes.html -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mb...@Ga...> - 2002-11-17 00:53:34
|
HtmlUnit-1.1-rc2 (release candidate 2) has been released. With luck this will be the last version before 1.1-final. Change history at http://htmlunit.sourceforge.net/changes.html -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mb...@Ga...> - 2002-11-15 19:05:18
|
Hi Martin, Assuming that the userid is "userid" and the password really is "password" then what you are doing looks correct to me. The only thing out of the ordinary seems to be the fact that you are doing basic authentication AND using a proxy server - a combination that I haven't personally tested. I'll have to dig through the spec to see if authentication is handled differently when going through a proxy. Please open a bug report on sourceforge so this one doesn't get lost. I'm in the middle of fixing some other bugs and won't get to this one right away. BTW you can ignore the first two warnings from httpclient. The credential support is handled in HtmlUnit so the second two warnings are the important ones. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <Mik...@su...> - 2002-11-15 18:45:36
|
What you're doing looks correct. You might try a few things: 1) Play around with the case of your names, e.g. try "input" instead of "INPUT". 2) Put quotes around all your attributes, e.g. name="btnSignin". Here's a few examples I have on hand. protected HtmlPage clickOnAnchor( HtmlPage page, String id) throws Exception { HtmlAnchor anchorElement = (HtmlAnchor)page.getHtmlElementById( id); return (HtmlPage)anchorElement.click(); } protected HtmlPage clickOnRadioButton( HtmlPage page, String id) throws Exception { HtmlRadioButtonInput inputElement = (HtmlRadioButtonInput)page.getHtmlElementById( id); return (HtmlPage)inputElement.click(); } protected HtmlPage setSelectedAttribute( HtmlPage page, String selectElementId, String attribute, boolean isSelected) { HtmlSelect selectElement = (HtmlSelect)page.getHtmlElementById( selectElementId); return (HtmlPage)selectElement.setSelectedAttribute( attribute, isSelected); } protected HtmlPage setInputValue( HtmlPage page, String inputElementName, String value) { HtmlInput inputElement = (HtmlInput) page.getOneHtmlElementByAttribute ("input", "name", inputElementName); inputElement.setValueAttribute( value); return page; } Mike |---------+--------------------------------------------> | | "Goudreau, David" | | | <DGo...@qr...> | | | Sent by: | | | htm...@li...ur| | | ceforge.net | | | | | | | | | 11/15/2002 12:35 PM | | | | |---------+--------------------------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: "'htm...@li...'" <htm...@li...> | | cc: | | Subject: [HtmlUnit] Sample code using HtmlUnit? | >--------------------------------------------------------------------------------------------------------------| I saw the tables code sample, but I'm wondering if someone could post some other basic code snippits, like getting a page, filling in text boxes, then submitting the form. Specifically, I'm having difficulty getting an HtmImageInput object from my page so that I can call click() on it and submit the form. At the moment I have HtmlImageInput submitFormButton = (HtmlImageInput) loginPage.getOneHtmlElementByAttribute("INPUT", "name", "btnSignin"); but I get an ElementNotFound exception. My HTML looks like <INPUT type=image height=27 alt="Log in" width=31 src="login.gif" border=0 name=btnSignin> Any help is greatly appreciated. -David ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ HtmlUnit-develop mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-develop |
From: Goudreau, D. <DGo...@qr...> - 2002-11-15 18:36:26
|
I saw the tables code sample, but I'm wondering if someone could post some other basic code snippits, like getting a page, filling in text boxes, then submitting the form. Specifically, I'm having difficulty getting an HtmImageInput object from my page so that I can call click() on it and submit the form. At the moment I have HtmlImageInput submitFormButton = (HtmlImageInput) loginPage.getOneHtmlElementByAttribute("INPUT", "name", "btnSignin"); but I get an ElementNotFound exception. My HTML looks like <INPUT type=image height=27 alt="Log in" width=31 src="login.gif" border=0 name=btnSignin> Any help is greatly appreciated. -David |
From: <mar...@bt...> - 2002-11-15 14:17:35
|
Hi, Try to access a page protected with username password. Keep getting the following error 0 [main] WARN httpclient.HttpMethod - No credentials available for the Basic authentication realm 'ISMserver' 350 [main] WARN httpclient.HttpMethod - No credentials available for the Basic authentication realm 'ISMserver' 350 [main] INFO htmlunit.WebClient - statusCode=[401] contentType=[text/plain] 350 [main] INFO htmlunit.WebClient - Unauthorised to access ISM Server. How is the username/password set for the web connection. I have done the following SimpleCredentialProvider creds = new SimpleCredentialProvider("username", "password"); WebClient webClient = new WebClient(BrowserVersion.FULL_FEATURED_BROWSER, "proxy", 8080); webClient.setCredentialProvider(creds); HtmlPage page = (HtmlPage)webClient.getPage( new URL("http","server", 9500, "/ISMserver") ); What piece am I missing? Any assistance would be greatly appreciated. Thanks, Martin Paton email: mar...@bt... BTexact Technologies is a trademark of British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 1800000 This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. |
From: <Mik...@su...> - 2002-11-14 20:59:38
|
Let's try this again; this time with a decent subject line and an attachment that won't get its formatting all messed up. Attached is a patch against the latest sources that implements Javascript support for the 'onchange' event on 'select' elements. Mike (See attached file: patch) |
From: <Mik...@su...> - 2002-11-14 20:54:21
|
Following is a patch against the latest sources that implements Javascript support for the 'onchange' event on 'select' elements. *** htmlunit-old/src/java/com/gargoylesoftware/htmlunit/html/HtmlSelect.java Sun Oct 6 14:06:16 2002 --- htmlunit-new/src/java/com/gargoylesoftware/htmlunit/html/HtmlSelect.java Thu Nov 14 14:52:16 2002 *************** *** 14,19 **** --- 14,21 ---- import java.util.List; import org.w3c.dom.Element; import org.w3c.dom.NodeList; + import com.gargoylesoftware.htmlunit.Page; + import com.gargoylesoftware.htmlunit.ScriptResult; /** * Wrapper for the html element "select" *************** *** 101,108 **** * @param optionValue The value of the option that is to change * @exception ElementNotFoundException If a particular xml element could * not be found in the dom model */ ! public void setSelectedAttribute( final String optionValue, final boolean isSelected ) throws ElementNotFoundException { try { --- 103,112 ---- * @param optionValue The value of the option that is to change * @exception ElementNotFoundException If a particular xml element could * not be found in the dom model + * @return The page that occupies this window after this change is made. It + * may be the same window or it may be a freshly loaded one. */ ! public Page setSelectedAttribute( final String optionValue, final boolean isSelected ) throws ElementNotFoundException { try { *************** *** 129,134 **** --- 133,148 ---- option.getValueAttribute().equals( optionValue ) && isSelected ); } } + + final HtmlPage page = getPage(); + final String onChange = getOnChangeAttribute(); + + if( onChange.length() != 0 && page.getWebClient().isJavaScriptEnabled () ) { + final ScriptResult scriptResult + = page.executeJavaScriptIfPossible( onChange, "onChange handler", true ); + return scriptResult.getNewPage(); + } + return page; } |
From: Mike B. <mb...@Ga...> - 2002-11-14 20:32:59
|
I've been trying to track this one down for a couple of days now but I haven't been able to reproduce it on my machine. The stack trace you provided makes it look like an HtmlPage has been put in the HiddenWebWindow which shouldn't be possible. The HiddenWebWindow is a holding place for JavaScript files as they're being loaded. I've put a check in the HiddenWebWindow that throws an exception if you try to put the wrong kind of page in it. Can you try your test with the latest code in cvs and send me the stack trace? Clearly the wrong thing is being put in the window and I need to know where that is happening. Thanks, -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <Mik...@su...> - 2002-11-14 18:52:13
|
After upgrading to the latest sources in CVS, I'm getting the following diagnostics at the beginning of my test suite. Note that I added an extra printStackTrace() to com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.getPageInfo(). I haven't been able to create a simple test case for this. The problem may be related to HTTP redirection. [INFO] HttpMethod - -Redirect requested but followRedirects is disabled java.lang.UnsupportedOperationException: This class doesn't support script objects at com.gargoylesoftware.htmlunit.HiddenWebWindow.setScriptObject(HiddenWebWindow.java:88) at com.gargoylesoftware.htmlunit.javascript.host.Window.initialize(Window.java:250) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.getPageInfo(JavaScriptEngine.java:122) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:149) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeScriptTagsIfNeeded(HtmlPage.java:726) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:101) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:765) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeScriptTagsIfNeeded(HtmlPage.java:751) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:101) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:238) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:238) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:180) at Test.login(Test.java:23) at Test.main(Test.java:9) com.gargoylesoftware.htmlunit.ScriptException: This class doesn't support script objects at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.getPageInfo(JavaScriptEngine.java:130) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:149) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeScriptTagsIfNeeded(HtmlPage.java:726) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:101) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:765) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeScriptTagsIfNeeded(HtmlPage.java:751) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:101) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:238) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:238) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:180) at Test.login(Test.java:23) at Test.main(Test.java:9) [ERROR] HtmlPage - -Error loading javascript from [http://localhost:8080/ErrorCorrectionWeb3/Common.js]: <com.gargoylesoftware.htmlunit.ScriptException: This class doesn't support script objects> |
From: Davide V. <var...@ya...> - 2002-11-04 15:44:10
|
Hi All, Does HtmlUnit manage session? TIA Davide __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ |
From: Mike B. <gar...@ya...> - 2002-10-31 21:32:15
|
> When one frame within a frameset submits a form that targets > another frame within the frameset, how does one access the > response? The method HtmlPage.getFrames() will return a list of HtmlFrame and HtmlInnerFrame objects for that page. WebClient.getWebWindowByName(String) will return the first window it finds with the specified name. Frames are windows in this context. When looking at this code, I just realized that getWebWindowByName() was opening a new TopLevelWindow everytime instead of reusing existing windows. I've put in a fix for that which will be in the next build. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |
From: DEMATTEIS, M. S [AG-Contractor/1000]
<mar...@mo...> - 2002-10-31 21:11:30
|
When one frame within a frameset submits a form that targets another frame within the frameset, how does one access the response? Mark |
From: Mike B. <gar...@ya...> - 2002-10-29 21:51:34
|
The original goal of the 1.1 release was to implement the parts of javascript support that are used most frequently. We've reached that goal. There is still a lot to do wrt javascript support but there is enough there to have a production release. Assuming no show-stopper bugs are found, this release candidate will become 1.1 final. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |
From: Mike B. <gar...@ya...> - 2002-10-21 17:19:36
|
> I've also have gotten this exception more than a few times. It's > very odd, most of the time my program runs without a hitch then maybe > 1 time in 50 it gives me this exception. I checked in a new version of NekoHTML.jar on the weekend that fixes this problem. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |