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: Steve G. <SG...@Te...> - 2005-08-11 17:29:28
|
Perhaps a little more information would be helpful - the onchange event fires javascript to create values in other HtmlTextInput objects on the page, and actually causes a page refresh - the page coming back from the form.getPage() call does not have these new non-blank values. ----- Original Message ----- From: "Steve Gray" <SG...@Te...> To: <htm...@li...> Sent: Thursday, August 11, 2005 11:25 AM Subject: Re: [Htmlunit-user] Getting a HtmlTextInput onchange event to fire > It's on by default, and we are not explicitly turning it off, so, yes, > javascript is enabled. Here's the code: > > private static HtmlPage setInputText(HtmlForm form, String name, String > value) throws Exception { > > HtmlTextInput textField = (HtmlTextInput) form.getInputByName(name); > if (textField != null) { > textField.setValueAttribute(value); > } > return form.getPage(); > } > ----- Original Message ----- > From: "Marc Guillemot" <mgu...@ya...> > To: <htm...@li...> > Sent: Thursday, August 11, 2005 11:18 AM > Subject: Re: [Htmlunit-user] Getting a HtmlTextInput onchange event to fire > > > > The onchange handler should be fired. May you have deactivated javascript? > > > > Marc. > > > > Steve Gray wrote: > > > I'm trying to set the value attribute of this input type=text object, > but > > > nothing I do seems to get the onchange event to fire - does htmlunit > have an > > > equivalent method to the IE DOM method fireEvent? See: > > > > http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/fireevent.asp > > > > > > Here's the tag: > > > <input type="text" name="doseWeightRate" maxlength="10" size="10" > value="" > > > onchange="doseWeightRateEntered()" class="rightAlign"> > > > > > > I use setValueAttribute, and the value changes, but I can't get the > onchange > > > event to fire. > > > > > > Thanks- > > > Steve > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Htmlunit-user mailing list > > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Steve G. <SG...@Te...> - 2005-08-11 17:26:10
|
It's on by default, and we are not explicitly turning it off, so, yes, javascript is enabled. Here's the code: private static HtmlPage setInputText(HtmlForm form, String name, String value) throws Exception { HtmlTextInput textField = (HtmlTextInput) form.getInputByName(name); if (textField != null) { textField.setValueAttribute(value); } return form.getPage(); } ----- Original Message ----- From: "Marc Guillemot" <mgu...@ya...> To: <htm...@li...> Sent: Thursday, August 11, 2005 11:18 AM Subject: Re: [Htmlunit-user] Getting a HtmlTextInput onchange event to fire > The onchange handler should be fired. May you have deactivated javascript? > > Marc. > > Steve Gray wrote: > > I'm trying to set the value attribute of this input type=text object, but > > nothing I do seems to get the onchange event to fire - does htmlunit have an > > equivalent method to the IE DOM method fireEvent? See: > > http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/fireevent.asp > > > > Here's the tag: > > <input type="text" name="doseWeightRate" maxlength="10" size="10" value="" > > onchange="doseWeightRateEntered()" class="rightAlign"> > > > > I use setValueAttribute, and the value changes, but I can't get the onchange > > event to fire. > > > > Thanks- > > Steve > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Marc G. <mgu...@ya...> - 2005-08-11 17:14:50
|
The onchange handler should be fired. May you have deactivated javascript? Marc. Steve Gray wrote: > I'm trying to set the value attribute of this input type=text object, but > nothing I do seems to get the onchange event to fire - does htmlunit have an > equivalent method to the IE DOM method fireEvent? See: > http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/fireevent.asp > > Here's the tag: > <input type="text" name="doseWeightRate" maxlength="10" size="10" value="" > onchange="doseWeightRateEntered()" class="rightAlign"> > > I use setValueAttribute, and the value changes, but I can't get the onchange > event to fire. > > Thanks- > Steve > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Steve G. <SG...@Te...> - 2005-08-11 16:42:57
|
I'm trying to set the value attribute of this input type=text object, but nothing I do seems to get the onchange event to fire - does htmlunit have an equivalent method to the IE DOM method fireEvent? See: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/fireevent.asp Here's the tag: <input type="text" name="doseWeightRate" maxlength="10" size="10" value="" onchange="doseWeightRateEntered()" class="rightAlign"> I use setValueAttribute, and the value changes, but I can't get the onchange event to fire. Thanks- Steve |
From: Marc G. <mgu...@ya...> - 2005-08-11 14:18:07
|
>>What does your browser do (Firefox for instance, because IE...): does it change the received "\" to "/"? > > Ya, I noticed IE replaces "/" with "\" ... and the tested application > only needs to run on IE, so these uri's must be worked with. "/" with "\"? Sure? Not "\" with "/"? Does your "'/a/b/..\BIN\c.ASP" gets the same thinks as "'/a/b/../BIN/c.ASP"? >>Is it in a redirect or as src of a frame, what suggests your stack trace? > > I think it is as src of an IFrame .. the page being loaded has several IFrames. > > Do you think it is possible to solve this without building HtmlUnit > source with added code to convert "\" to "/"? a complete fix would need to build htmlunit to be integrate. Nevertheless I guess that you can write your own WebConnection wrapping the default one and rewriting the urls containing "\". Marc. |
From: Sue Yi <su...@gm...> - 2005-08-11 14:10:39
|
> What does your browser do (Firefox for instance, because IE...): does it = change the received "\" to "/"? Ya, I noticed IE replaces "/" with "\" ... and the tested application only needs to run on IE, so these uri's must be worked with. > Is it in a redirect or as src of a frame, what suggests your stack trace? I think it is as src of an IFrame .. the page being loaded has several IFra= mes. Do you think it is possible to solve this without building HtmlUnit source with added code to convert "\" to "/"? Thanks, Sue On 8/11/05, Marc Guillemot <mgu...@ya...> wrote: > As far as I know is "\" not legal in an URI. >=20 > What does your browser do (Firefox for instance, because IE...): does it = change the received "\" to "/"? >=20 > Is it in a redirect or as src of a frame, what suggests your stack trace? >=20 > Marc. >=20 > Sue Yi wrote: > > Hello, > > > > I am using HtmlUnit to test an application which contains redirects. > > In the application there is a redirect to "'/a/b/..\BIN\c.ASP" (URI > > changed for privacy) -- I get a IllegalArgumentException "escaped > > absolute path not valid". > > > > Is this because all URI's needed to be absolute, or is it because > > there are both "\" and "/" in the URI? > > > > Can anyone suggest how I could solve this problem? > > > > Thank you, > > Sue > > > > > > java.lang.IllegalArgumentException: Invalid uri '/a/b/..\BIN\c.ASP': > > escaped absolute path not valid > > at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethod= Base.java:219) > > at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMeth= od.java:88) > > at com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod= (HttpWebConnection.java:199) > > at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(Ht= tpWebConnection.java:134) > > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebCli= ent.java:1588) > > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebCli= ent.java:1562) > > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java= :359) > > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPo= ssible(BaseFrame.java:212) > > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage(Bas= eFrame.java:198) > > at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(Ht= mlPage.java:1396) > > at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode= .java:463) > > at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuild= er.startElement(HTMLParser.java:368) > > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkno= wn Source) > > at org.cyberneko.html.filters.DefaultFilter.startElement(DefaultF= ilter.java:179) > > at org.cyberneko.html.filters.NamespaceBinder.startElement(Namesp= aceBinder.java:280) > > at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBal= ancer.java:1009) > > at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalance= r.java:639) > > at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement= (HTMLScanner.java:2343) > > at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner= .java:1820) > > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:7= 89) > > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.j= ava:478) > > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.j= ava:431) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuild= er.parse(HTMLParser.java:330) > > at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser= .java:245) > > at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPag= e(DefaultPageCreator.java:115) > > at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(De= faultPageCreator.java:84) > > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(We= bClient.java:709) > > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java= :376) > > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java= :415) > > at HTMLUnitRun.test(HTMLUnitRun.java:40) > > at Main.main(Main.java:13) > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pract= ices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic= es > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Marc G. <mgu...@ya...> - 2005-08-11 13:51:49
|
As far as I know is "\" not legal in an URI. What does your browser do (Firefox for instance, because IE...): does it change the received "\" to "/"? Is it in a redirect or as src of a frame, what suggests your stack trace? Marc. Sue Yi wrote: > Hello, > > I am using HtmlUnit to test an application which contains redirects. > In the application there is a redirect to "'/a/b/..\BIN\c.ASP" (URI > changed for privacy) -- I get a IllegalArgumentException "escaped > absolute path not valid". > > Is this because all URI's needed to be absolute, or is it because > there are both "\" and "/" in the URI? > > Can anyone suggest how I could solve this problem? > > Thank you, > Sue > > > java.lang.IllegalArgumentException: Invalid uri '/a/b/..\BIN\c.ASP': > escaped absolute path not valid > at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:219) > at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88) > at com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod(HttpWebConnection.java:199) > at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:134) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1588) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1562) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359) > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible(BaseFrame.java:212) > at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage(BaseFrame.java:198) > at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1396) > at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:463) > at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:368) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > at org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.java:179) > at org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) > at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1009) > at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:639) > at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2343) > at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1820) > at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478) > at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:330) > at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:245) > at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:115) > at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:84) > at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:709) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:376) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:415) > at HTMLUnitRun.test(HTMLUnitRun.java:40) > at Main.main(Main.java:13) > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Sue Yi <su...@gm...> - 2005-08-11 13:44:39
|
Hello, I am using HtmlUnit to test an application which contains redirects. In the application there is a redirect to "'/a/b/..\BIN\c.ASP" (URI changed for privacy) -- I get a IllegalArgumentException "escaped absolute path not valid". Is this because all URI's needed to be absolute, or is it because there are both "\" and "/" in the URI? Can anyone suggest how I could solve this problem? Thank you, Sue java.lang.IllegalArgumentException: Invalid uri '/a/b/..\BIN\c.ASP': escaped absolute path not valid =09at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.ja= va:219) =09at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java= :88) =09at com.gargoylesoftware.htmlunit.HttpWebConnection.makeHttpMethod(HttpWe= bConnection.java:199) =09at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebCo= nnection.java:134) =09at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.jav= a:1588) =09at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.jav= a:1562) =09at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359) =09at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible(= BaseFrame.java:212) =09at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage(BaseFrame.= java:198) =09at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.= java:1396) =09at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:4= 63) =09at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.star= tElement(HTMLParser.java:368) =09at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour= ce) =09at org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.j= ava:179) =09at org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBind= er.java:280) =09at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.j= ava:1009) =09at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:= 639) =09at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLSc= anner.java:2343) =09at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1= 820) =09at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:789) =09at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478= ) =09at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431= ) =09at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) =09at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.pars= e(HTMLParser.java:330) =09at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:2= 45) =09at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(Defau= ltPageCreator.java:115) =09at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPa= geCreator.java:84) =09at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient= .java:709) =09at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:376) =09at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:415) =09at HTMLUnitRun.test(HTMLUnitRun.java:40) =09at Main.main(Main.java:13) |
From: Kevin M. <km...@se...> - 2005-08-11 13:28:45
|
On Aug 11, 2005, at 8:59 AM, Marc Guillemot wrote: > have you tried > onchange="this.form.submit();" That had no effect. The click() method is still returning the current page instance. I'll try your previous suggestions. Thanks again for your help, Kevin |
From: Marc G. <mgu...@ya...> - 2005-08-11 12:55:30
|
Kevin Menard wrote: > On Aug 9, 2005, at 3:09 AM, Marc Guillemot wrote: > >> Quite strange. Can you log the currently opened windows using >> WebClient.getWebWindows()? Can you check if the page is really the one >> that is currently loaded in the window: nextPage == >> nextPage.getEnclosingWindow().getEnclosedPage() > > > I'll give this a shot, but in the meanwhile, I noticed something odd. > If I set a breakpoint in the webapp to handle the form submit, it turns > out it never gets hit. So, I think HtmlUnit is just not executing the > onclick handler correctly. The rendered HTML for this checkbox is the > following: > > <input type="checkbox" name="sameShippingInfo" id="sameShippingInfo" > onchange="javascript:this.form.submit();"/> > > I've worked around this in the interim by simply calling form.submit() > and setting a couple of others things up to simulate the clicking of the > checkbox. Calling form.submit() will submit the form and redirect to > the correct page. > > Any further thoughts on this? have you tried onchange="this.form.submit();" Marc. |
From: Kevin M. <km...@se...> - 2005-08-11 12:50:06
|
On Aug 9, 2005, at 3:09 AM, Marc Guillemot wrote: > Quite strange. Can you log the currently opened windows using > WebClient.getWebWindows()? Can you check if the page is really the > one that is currently loaded in the window: nextPage == > nextPage.getEnclosingWindow().getEnclosedPage() I'll give this a shot, but in the meanwhile, I noticed something odd. If I set a breakpoint in the webapp to handle the form submit, it turns out it never gets hit. So, I think HtmlUnit is just not executing the onclick handler correctly. The rendered HTML for this checkbox is the following: <input type="checkbox" name="sameShippingInfo" id="sameShippingInfo" onchange="javascript:this.form.submit();"/> I've worked around this in the interim by simply calling form.submit () and setting a couple of others things up to simulate the clicking of the checkbox. Calling form.submit() will submit the form and redirect to the correct page. Any further thoughts on this? Thanks, Kevin |
From: Marc G. <mgu...@ya...> - 2005-08-10 01:35:13
|
Quite strange. Can you log the currently opened windows using WebClient.getWebWindows()? Can you check if the page is really the one that is currently loaded in the window: nextPage == nextPage.getEnclosingWindow().getEnclosedPage() Marc. Kevin Menard wrote: > > On Aug 8, 2005, at 12:08 PM, Marc Guillemot wrote: > >> Which version do you use? May your form be submitted in an other >> window / frame? > > > I'm using HtmlUnit 1.6 and this is all in a single frame. What I have > is a Tapestry webapp with a form. The check box's onclick event has > some Javascript that submits the form. Tapestry's listener gets called > in response and redirects to a new page. This behavior has been > verified in every major web browser, so it's not that the form is not > causing the redirect. > |
From: Kevin M. <km...@se...> - 2005-08-08 17:13:11
|
On Aug 8, 2005, at 12:08 PM, Marc Guillemot wrote: > Which version do you use? May your form be submitted in an other > window / frame? I'm using HtmlUnit 1.6 and this is all in a single frame. What I have is a Tapestry webapp with a form. The check box's onclick event has some Javascript that submits the form. Tapestry's listener gets called in response and redirects to a new page. This behavior has been verified in every major web browser, so it's not that the form is not causing the redirect. -- Kevin |
From: Marc G. <mgu...@ya...> - 2005-08-08 16:05:10
|
Which version do you use? May your form be submitted in an other window / frame? Marc. Kevin Menard wrote: > > On Aug 8, 2005, at 11:51 AM, Brad Clarke wrote: > >> That was fixed in 1.3 and there is a unit test for it. > > > Okay, well I'm using 1.6. So any thoughts as to what may be going wrong? > > Just to give a snippet of what I'm doing: > > final HtmlPage nextPage = (HtmlPage) getForm().getInputByName > ("sameShippingInfo").click(); > final HtmlForm form = nextPage.getFormByName("add"); > > where getForm() is a method I have that returns the only form for the > current page. > > nextPage gets set to the current page and form gets set to the same > form that getForm() returns. > > Any help would be appreciated. > > Thanks, > Kevin > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Kevin M. <km...@se...> - 2005-08-08 16:00:57
|
On Aug 8, 2005, at 11:51 AM, Brad Clarke wrote: > That was fixed in 1.3 and there is a unit test for it. Okay, well I'm using 1.6. So any thoughts as to what may be going wrong? Just to give a snippet of what I'm doing: final HtmlPage nextPage = (HtmlPage) getForm().getInputByName ("sameShippingInfo").click(); final HtmlForm form = nextPage.getFormByName("add"); where getForm() is a method I have that returns the only form for the current page. nextPage gets set to the current page and form gets set to the same form that getForm() returns. Any help would be appreciated. Thanks, Kevin |
From: Brad C. <yo...@br...> - 2005-08-08 15:51:34
|
That was fixed in 1.3 and there is a unit test for it. Brad C --- Kevin Menard <km...@se...> wrote: > Hey all, > > I'm fairly new to HtmlUnit, so apologies if this has been covered > before (the only related message I could find in the archives was > over a year old). Basically, I have a form with a check box and when > the box is clicked it fires off a JavaScript event that submits the > form. The click() method, however, is not returning the new page > after the form submission but rather the page that the check box was > contained in. Is this not the correct approach to capturing that new > page instance? > > Thanks, > Kevin > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Kevin M. <km...@se...> - 2005-08-08 15:31:13
|
Hey all, I'm fairly new to HtmlUnit, so apologies if this has been covered before (the only related message I could find in the archives was over a year old). Basically, I have a form with a check box and when the box is clicked it fires off a JavaScript event that submits the form. The click() method, however, is not returning the new page after the form submission but rather the page that the check box was contained in. Is this not the correct approach to capturing that new page instance? Thanks, Kevin |
From: Toddy M. <zzz...@en...> - 2005-07-26 18:27:43
|
Hello Marc, I will open an RFE. Meanwhile you advise to do something like this? public HtmlPage submitRegistration(HtmlPage aPage) { ... WebClient aClient = aPage.getWebClient(); URL referer = aPage.getWebResponse().getUrl(); aClient.addRequestHeader("Referer", referer.toString()); HtmlPage nextPage = (HtmlPage)button.click(); } Btw.: I already advised to not rely on the Referer request-header field. Thx -Toddy Marc Guillemot wrote: > Hi, > > htmlunit doesn't currently set any Referer header. It's possible (but > tedious) to use WebClient#addRequestHeader before to click the link. > Please open a RFE for this. > > NB: except if your webapp is only for intranet use, it may be quite > unsecure to rely on the Referer header value. > > Marc. > > Toddy Marx wrote: > >> Hello, >> >> I would like to submit a form (post) with HtmlUnit having the >> Referer request-header field set. It works fine to submit the form >> but the referer-header field is not set. >> >> Is there a way to set the referer when submitting a form? >> >> Thanx! >> -Toddy >> >> My code looks like this: >> >> public HtmlPage submitRegistration(HtmlPage aPage) { >> // get the form to process it >> HtmlForm regForm = aPage.getFormByName("registration"); >> >> // get the submit button to later click it >> HtmlSubmitInput button = >> (HtmlSubmitInput)regForm.getInputByValue("register"); >> // get the textfield to enter the name >> HtmlTextInput textField = >> (HtmlTextInput)regForm.getInputByName("name"); >> >> String nameString = "Homer"; >> textField.setValueAttribute(nameString); >> >> // submit the form and get the response page >> HtmlPage nextPage = (HtmlPage)button.click(); >> >> return nextPage; >> } >> >> >> >> >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Marc G. <mgu...@ya...> - 2005-07-26 07:57:05
|
Hi, htmlunit doesn't currently set any Referer header. It's possible (but tedious) to use WebClient#addRequestHeader before to click the link. Please open a RFE for this. NB: except if your webapp is only for intranet use, it may be quite unsecure to rely on the Referer header value. Marc. Toddy Marx wrote: > Hello, > > I would like to submit a form (post) with HtmlUnit having the Referer > request-header field set. It works fine to submit the form but the > referer-header field is not set. > > Is there a way to set the referer when submitting a form? > > Thanx! > -Toddy > > My code looks like this: > > public HtmlPage submitRegistration(HtmlPage aPage) { > // get the form to process it > HtmlForm regForm = aPage.getFormByName("registration"); > > // get the submit button to later click it > HtmlSubmitInput button = > (HtmlSubmitInput)regForm.getInputByValue("register"); > // get the textfield to enter the name > HtmlTextInput textField = (HtmlTextInput)regForm.getInputByName("name"); > > String nameString = "Homer"; > textField.setValueAttribute(nameString); > > // submit the form and get the response page > HtmlPage nextPage = (HtmlPage)button.click(); > > return nextPage; > } > > > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Toddy M. <tod...@en...> - 2005-07-25 20:07:37
|
Hello, I would like to submit a form (post) with HtmlUnit having the Referer request-header field set. It works fine to submit the form but the referer-header field is not set. Is there a way to set the referer when submitting a form? Thanx! -Toddy My code looks like this: public HtmlPage submitRegistration(HtmlPage aPage) { // get the form to process it HtmlForm regForm = aPage.getFormByName("registration"); // get the submit button to later click it HtmlSubmitInput button = (HtmlSubmitInput)regForm.getInputByValue("register"); // get the textfield to enter the name HtmlTextInput textField = (HtmlTextInput)regForm.getInputByName("name"); String nameString = "Homer"; textField.setValueAttribute(nameString); // submit the form and get the response page HtmlPage nextPage = (HtmlPage)button.click(); return nextPage; } |
From: Marc G. <mgu...@ya...> - 2005-07-20 14:52:25
|
or even better than removing the dependency: just add maven.junit.fork=yes in your project.properties Marc. |
From: Marc G. <mgu...@ya...> - 2005-07-20 14:43:52
|
Salut Guillaume, There are many nested XNIException and InvocationTargetException. Walking it up it appears that the root cause is: --- java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.buildUsageMap(JavaScriptConfiguration.java:268) at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.<init>(JavaScriptConfiguration.java:108) at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getInstance(JavaScriptConfiguration.java:201) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.getPageInfo(JavaScriptEngine.java:155) ... --- Removing the xmlParserAPIs dependency seems to solve the problem. I don't have time to do more investigations. If you need more help, please contact me privately. Marc. Guillaume Lederrey wrote: > On 7/20/05, Marc Guillemot <mgu...@ya...> wrote: > >>it works: it fails ;-) >> >>Quite strange. I'll try to investigate it. >> > > > > Thanks a lot ! > > Guillaume > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Guillaume L. <gui...@gm...> - 2005-07-20 13:46:56
|
On 7/20/05, Marc Guillemot <mgu...@ya...> wrote: > it works: it fails ;-) >=20 > Quite strange. I'll try to investigate it. >=20 Thanks a lot ! Guillaume |
From: Marc G. <mgu...@ya...> - 2005-07-20 13:42:59
|
it works: it fails ;-) Quite strange. I'll try to investigate it. Marc. Guillaume Lederrey wrote: > And here is the tar.gz with a full project ! > > I hope it also fails for you ;-) > > Thanks a lot for having a look at it ! > > > Guillaume |
From: Guillaume L. <gui...@gm...> - 2005-07-20 13:21:06
|
And here is the tar.gz with a full project ! I hope it also fails for you ;-) Thanks a lot for having a look at it ! Guillaume |