You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Marc G. <mgu...@ya...> - 2005-04-26 08:07:03
|
Hi Dave, the problem seems to come from the syntax "function window::onLoad()". Trying following code: <html><head><title>foo</title> <script> function window::onLoad() { alert("toto"); } </script> </head> <body> </body> </html> in Mozilla, Firefox and IE, it only works with IE and I get the same errors in Mozilla and Firefox as the one reported by htmlunit. Therefore I guess that your server generates other javascript for an non IE browser. What happens if you simulate Mozilla with htmlunit to visit your page? I have to say that it is the first time that I see this syntax but htmlunit should support it when simulating IE as it is supported by IE. Not sure of Rhino (the underlying javascript engine) can do it. Please open a bug issue for it. If you want to simulate IE and can't change the js delivered by the server, you can write a ScriptPreProcessor to adapt the js before it is executed by htmlunit changing for instance function window::onLoad() { IE_OnLoad(); } to window.onload = function() { IE_OnLoad(); } Marc. Dave Kosenko wrote: > I'm trying to set up some unit tests against a web site whose pages have > been > instrumented for the purposes of performance monitoring. This > instrumentation is > done via javascript. Accessing the instrumented pages using several > browsers > (Firefox, IE) render them just fine with no errors. But when I grab the > pages via > htmlunit, I get exceptions on the syntax of some of the javascript. > > Apr 25, 2005 12:55:38 PM > com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter error > SEVERE: error: message=[missing ( before function parameters.] > sourceName=[Embedded script] > line=[1] lineSource=[function window::onLoad() { IE_OnLoad(); } function > window::onBeforeUnload() { IE_OnBeforeUnLoad(); }] lineOffset=[17] > Got an exception > Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped > com.gargoylesoftware.htmlunit.ScriptException: missing ( before function > parameters. (Embedded script#1) > (http://rattle:82/veritas_i4t_agents/pssift_s1.js#352) > > The script does a writeln into the page of the code above, namely: > > function window::onLoad() { IE_OnLoad(); } function > window::onBeforeUnload() { IE_OnBeforeUnLoad(); } > > This is not code I have written or really have control over so changing the > source is really not an option. What I'm at a loss to understand is why > this > causes an exception in html unit and not in other browsers, esp > Firefox? Does > anyone who know javascript well know if the above is valid? > > My bad java code is included below in case I've done anything dumb > there. Oh and > the same problem occurs with various values for the browser version. > > import junit.framework.TestCase; > import com.gargoylesoftware.htmlunit.*; > import com.gargoylesoftware.htmlunit.html.*; > import java.net.*; > > public class test1 extends TestCase { > > public static void main(String[] args) { > > System.setProperty("com.gargoylesoft.htmlunit.javascript", "debug"); > System.out.println("Start test:"); > System.out.println("Using URL="+args[0]); > for (int i=0; i<=100000; i++){ > System.out.print("Run: "); > System.out.println(i); > try { > testSearch(args[0]); > } catch (Exception e){ > System.out.println("Got an exception"); > System.out.println(e.getMessage()); > } > } > } > > public static void testSearch(String urltouse) throws Exception { > final WebClient webClient = new > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > final URL url = new URL(urltouse); > final HtmlPage page = (HtmlPage)webClient.getPage(url); > } > > > } > > Thanks, > Dave > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click |
From: Marc G. <mgu...@ya...> - 2005-04-26 07:51:53
|
Not sure but I think that it is a job for commons-httpclient. Marc. Dan Levine wrote: > for the basis of certain tests, i need to call pages via IP instead of DNS. > only problem is I need dns-based cookie support. i have seen in some web > client utils the ability to enter an IP and a DNS and have the client call > pages via the IP but act as if it were calling the DNS (for cookies and > such). Would this be a HttpClient level functionality or HtmlUnit > functionality? > > thanks! > > >> HtmlUnit relies on commons-httpclient 3.0 for Cookie >>handling. The odds are pretty good that whatever cookie >>problems you're encountering already have a solution as explained >>in the Cookie Guide. If that doesn't help then post > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click |
From: Dave K. <dko...@ve...> - 2005-04-25 17:17:43
|
I'm trying to set up some unit tests against a web site whose pages have been instrumented for the purposes of performance monitoring. This instrumentation is done via javascript. Accessing the instrumented pages using several browsers (Firefox, IE) render them just fine with no errors. But when I grab the pages via htmlunit, I get exceptions on the syntax of some of the javascript. Apr 25, 2005 12:55:38 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter error SEVERE: error: message=[missing ( before function parameters.] sourceName=[Embedded script] line=[1] lineSource=[function window::onLoad() { IE_OnLoad(); } function window::onBeforeUnload() { IE_OnBeforeUnLoad(); }] lineOffset=[17] Got an exception Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: missing ( before function parameters. (Embedded script#1) (http://rattle:82/veritas_i4t_agents/pssift_s1.js#352) The script does a writeln into the page of the code above, namely: function window::onLoad() { IE_OnLoad(); } function window::onBeforeUnload() { IE_OnBeforeUnLoad(); } This is not code I have written or really have control over so changing the source is really not an option. What I'm at a loss to understand is why this causes an exception in html unit and not in other browsers, esp Firefox? Does anyone who know javascript well know if the above is valid? My bad java code is included below in case I've done anything dumb there. Oh and the same problem occurs with various values for the browser version. import junit.framework.TestCase; import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.*; import java.net.*; public class test1 extends TestCase { public static void main(String[] args) { System.setProperty("com.gargoylesoft.htmlunit.javascript", "debug"); System.out.println("Start test:"); System.out.println("Using URL="+args[0]); for (int i=0; i<=100000; i++){ System.out.print("Run: "); System.out.println(i); try { testSearch(args[0]); } catch (Exception e){ System.out.println("Got an exception"); System.out.println(e.getMessage()); } } } public static void testSearch(String urltouse) throws Exception { final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); final URL url = new URL(urltouse); final HtmlPage page = (HtmlPage)webClient.getPage(url); } } Thanks, Dave |
From: Dan L. <dl...@ca...> - 2005-04-25 16:45:36
|
for the basis of certain tests, i need to call pages via IP instead of DNS. only problem is I need dns-based cookie support. i have seen in some web client utils the ability to enter an IP and a DNS and have the client call pages via the IP but act as if it were calling the DNS (for cookies and such). Would this be a HttpClient level functionality or HtmlUnit functionality? thanks! > HtmlUnit relies on commons-httpclient 3.0 for Cookie > handling. The odds are pretty good that whatever cookie > problems you're encountering already have a solution as explained > in the Cookie Guide. If that doesn't help then post |
From: Brad C. <yo...@br...> - 2005-04-25 15:40:55
|
This -should- disable all cookies: CookiePolicy.registerCookieSpec(CookiePolicy.DEFAULT, CookiePolicy.IGNORE_COOKIES); References: http://jakarta.apache.org/commons/httpclient/3.0/cookies.html http://jakarta.apache.org/commons/httpclient/3.0/apidocs/org/apache/commons/httpclient/cookie/CookiePolicy.html#IGNORE_COOKIES You'll need to set it back to RFC_2109 when you're done since it's static. --- Ducloux Victor <vdu...@co...> wrote: > I everyone, I hope this time I get some help from someone. According to > the problem shown below i xould like to know how to disable cookie > handling in htmlunit ? > This means that htmlUnit should act like a web browser that has refused > to accept all cookies .... > > If anyone can help in a way or the other ........ > Thanks in advance, > > > > Ducloux Victor a écrit : > > > Hello, is anyone out there that can give a comment or any idea please ??? > > I'm really stuck with this problem ! > > > > thanks in advance > > > > > > > > Ducloux Victor a écrit : > > > >> Hi everybody, I've started to use htmlUnit, i now browse into pages > >> and test .... > >> > >> One problem is that i get this error : > >> > >> 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase > >> processResponseHeaders > >> ATTENTION: Invalid cookie header: > >> "JSESSIONID=45720B71F325CE4449A6EF0A3A1C6CA6; Path=". Missing value > >> for path attribute > >> > >> this appears after i give my login information, and then the > >> internet site i develop (should) store this cookie! since there is an > >> error storing the cookie, i don't get logged and i come back to the > >> login page. > >> > >> Note that this site works well (the cookie storing) with firefox & ie > >> so i don't think so , as ther error message tells, that there is an > >> error in the path atribute ! > >> > >> What do you think, thanks again for the help ! > >> > >> Victor > >> -- > >> > >> > >> Victor Ducloux | Stagiaire > >> Tél portable : > >> > >> *c o s m o s b a y ~ v e c t i s* > >> > >> 10, rue du Faubourg Poissonnière - 75010 Paris - > >> www.cosmosbay-vectis.com > >> Tél général : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > >> > >> 158, rue du 4 août 1789 - 69100 Villeurbanne - > >> www.cosmosbay-vectis.com > >> Tél. général : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 > >> > >> Chemin de Saint-Lambert, Actiburo 1, Bâtiment A - 13400 Aubagne - > >> www.cosmosbay-vectis.com > >> Tél. général : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > >> > > Victor Ducloux | Stagiaire > Tél portable : +33 6 60 41 76 03 > > *c o s m o s b a y ~ v e c t i s > * > > Chemin de Saint-Lambert, Actiburo 1, Bâtiment A - 13400 Aubagne - > www.cosmosbay-vectis.com > Tél. général : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > > |
From: Marc G. <mgu...@ya...> - 2005-04-25 15:34:28
|
and you can find it in the FAQ: http://htmlunit.sourceforge.net/faq.html#CookieSupport ------------- I'm having problems with cookie support. HtmlUnit relies on commons-httpclient 3.0 for Cookie handling. The odds are pretty good that whatever cookie problems you're encountering already have a solution as explained in the Cookie Guide. If that doesn't help then post something to the HtmlUnit mailing list. ------------- Marc. Erskine, Chris wrote: > HtmlUnit uses commons HttpClient underneath for it’s processing. I > think that there is a function within HttpClient that allows you to > control cookie processing. > > > > Chris Erskine > > EDS Consulting Services > Colorado Springs, CO > > Phone: 719-265-5962 > Cell: 719-640-6488 > > ------------------------------------------------------------------------ > > *From:* htm...@li... > [mailto:htm...@li...] *On Behalf Of > *Ducloux Victor > *Sent:* Monday, April 25, 2005 8:51 AM > *To:* htm...@li... > *Subject:* Re: [Htmlunit-user] Cookie error > > > > I everyone, I hope this time I get some help from someone. According to > the problem shown below i xould like to know how to disable cookie > handling in htmlunit ? > This means that htmlUnit should act like a web browser that has refused > to accept all cookies .... > > If anyone can help in a way or the other ........ > Thanks in advance, > > > > Ducloux Victor a écrit : > > Hello, is anyone out there that can give a comment or any idea please ??? > I'm really stuck with this problem ! > > thanks in advance > > > > Ducloux Victor a écrit : > > Hi everybody, I've started to use htmlUnit, i now browse into pages and > test .... > > One problem is that i get this error : > > 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase > processResponseHeaders > ATTENTION: Invalid cookie header: > "JSESSIONID=45720B71F325CE4449A6EF0A3A1C6CA6; Path=". Missing value for > path attribute > > this appears after i give my login information, and then the internet > site i develop (should) store this cookie! since there is an error > storing the cookie, i don't get logged and i come back to the login page. > > Note that this site works well (the cookie storing) with firefox & ie so > i don't think so , as ther error message tells, that there is an error > in the path atribute ! > > What do you think, thanks again for the help ! > > Victor > > -- > > > Victor Ducloux | Stagiaire > Tél portable : > > *c o s m o s **b **a y **~ **v e c t i s* > > 10, rue du Faubourg Poissonnière - 75010 Paris - > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > Tél général : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > > 158, rue du 4 août 1789 - 69100 Villeurbanne - www.cosmosbay-vectis.com > <http://www.cosmosbay-vectis.com> > Tél. général : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 > > Chemin de Saint-Lambert, Actiburo 1, Bâtiment A - 13400 Aubagne - > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > Tél. général : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > > > Victor Ducloux | Stagiaire > Tél portable : +33 6 60 41 76 03 > > *c o s m o s **b **a y **~ **v e c t i s* > > Chemin de Saint-Lambert, Actiburo 1, Bâtiment A - 13400 Aubagne - > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > Tél. général : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > |
From: Ducloux V. <vdu...@co...> - 2005-04-25 15:33:39
|
Yhakns, I just gor the line to make cookie handling more permissive : System.setProperty("apache.commons.httpclient.cookiespec",=20 CookiePolicy.BROWSER_COMPATIBILITY); It may always help someone ... Victor Erskine, Chris a =E9crit : > HtmlUnit uses commons HttpClient underneath for it's processing. I=20 > think that there is a function within HttpClient that allows you to=20 > control cookie processing. > > =20 > > Chris Erskine > =20 > EDS Consulting Services > Colorado Springs, CO=20 > =20 > Phone: 719-265-5962 > Cell: 719-640-6488 > > -----------------------------------------------------------------------= - > > *From:* htm...@li...=20 > [mailto:htm...@li...] *On Behalf Of=20 > *Ducloux Victor > *Sent:* Monday, April 25, 2005 8:51 AM > *To:* htm...@li... > *Subject:* Re: [Htmlunit-user] Cookie error > > =20 > > I everyone, I hope this time I get some help from someone. According=20 > to the problem shown below i xould like to know how to disable cookie=20 > handling in htmlunit ? > This means that htmlUnit should act like a web browser that has=20 > refused to accept all cookies .... > > If anyone can help in a way or the other ........ > Thanks in advance, > > > > Ducloux Victor a =E9crit : > > Hello, is anyone out there that can give a comment or any idea please ?= ?? > I'm really stuck with this problem ! > > thanks in advance > > > > Ducloux Victor a =E9crit : > > Hi everybody, I've started to use htmlUnit, i now browse into pages=20 > and test .... > > One problem is that i get this error : > > 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase=20 > processResponseHeaders > ATTENTION: Invalid cookie header:=20 > "JSESSIONID=3D45720B71F325CE4449A6EF0A3A1C6CA6; Path=3D". Missing value= =20 > for path attribute > > this appears after i give my login information, and then the internet=20 > site i develop (should) store this cookie! since there is an error=20 > storing the cookie, i don't get logged and i come back to the login pag= e. > > Note that this site works well (the cookie storing) with firefox & ie=20 > so i don't think so , as ther error message tells, that there is an=20 > error in the path atribute ! > > What do you think, thanks again for the help ! > > Victor > > --=20 > > > Victor Ducloux | Stagiaire > T=E9l portable : > > *c o s m o s **b **a y **~ **v e c t i s* > > 10, rue du Faubourg Poissonni=E8re - 75010 Paris -=20 > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > > 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne -=20 > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 > > Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne -=20 > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > > > Victor Ducloux | Stagiaire > T=E9l portable : +33 6 60 41 76 03 > > *c o s m o s **b **a y **~ **v e c t i s* > > Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - > www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> > T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > --=20 Victor Ducloux | Stagiaire T=E9l portable : +33 6 60 41 76 03 *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - www.cosmosbay-vectis= .com T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Erskine, C. <chr...@ed...> - 2005-04-25 15:30:22
|
HtmlUnit uses commons HttpClient underneath for it's processing. I = think that there is a function within HttpClient that allows you to control = cookie processing. =20 Chris Erskine=20 =20 EDS Consulting Services=20 Colorado Springs, CO =20 =20 Phone: 719-265-5962=20 Cell: 719-640-6488=20 _____ =20 From: htm...@li... [mailto:htm...@li...] On Behalf Of Ducloux Victor Sent: Monday, April 25, 2005 8:51 AM To: htm...@li... Subject: Re: [Htmlunit-user] Cookie error =20 I everyone, I hope this time I get some help from someone. According to = the problem shown below i xould like to know how to disable cookie handling = in htmlunit ? This means that htmlUnit should act like a web browser that has refused = to accept all cookies .... If anyone can help in a way or the other ........ Thanks in advance, Ducloux Victor a =E9crit :=20 Hello, is anyone out there that can give a comment or any idea please = ??? I'm really stuck with this problem ! thanks in advance=20 Ducloux Victor a =E9crit :=20 Hi everybody, I've started to use htmlUnit, i now browse into pages and = test .... One problem is that i get this error : 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase processResponseHeaders ATTENTION: Invalid cookie header: "JSESSIONID=3D45720B71F325CE4449A6EF0A3A1C6CA6; Path=3D". Missing value = for path attribute this appears after i give my login information, and then the internet = site i develop (should) store this cookie! since there is an error storing = the cookie, i don't get logged and i come back to the login page. Note that this site works well (the cookie storing) with firefox & ie = so i don't think so , as ther error message tells, that there is an error in = the path atribute ! What do you think, thanks again for the help ! Victor --=20 Victor Ducloux | Stagiaire T=E9l portable :=20 c o s m o s b a y ~ v e c t i s 10, rue du Faubourg Poissonni=E8re - 75010 Paris - = www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> =20 T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - = www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> =20 T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24=20 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> =20 T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 Victor Ducloux | Stagiaire T=E9l portable : +33 6 60 41 76 03 c o s m o s b a y ~ v e c t i s Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> =20 T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Ducloux V. <vdu...@co...> - 2005-04-25 15:11:21
|
I everyone, I hope this time I get some help from someone. According to=20 the problem shown below i xould like to know how to disable cookie=20 handling in htmlunit ? This means that htmlUnit should act like a web browser that has refused=20 to accept all cookies .... If anyone can help in a way or the other ........ Thanks in advance, Ducloux Victor a =E9crit : > Hello, is anyone out there that can give a comment or any idea please ?= ?? > I'm really stuck with this problem ! > > thanks in advance > > > > Ducloux Victor a =E9crit : > >> Hi everybody, I've started to use htmlUnit, i now browse into pages=20 >> and test .... >> >> One problem is that i get this error : >> >> 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase=20 >> processResponseHeaders >> ATTENTION: Invalid cookie header:=20 >> "JSESSIONID=3D45720B71F325CE4449A6EF0A3A1C6CA6; Path=3D". Missing valu= e=20 >> for path attribute >> >> this appears after i give my login information, and then the=20 >> internet site i develop (should) store this cookie! since there is an=20 >> error storing the cookie, i don't get logged and i come back to the=20 >> login page. >> >> Note that this site works well (the cookie storing) with firefox & ie=20 >> so i don't think so , as ther error message tells, that there is an=20 >> error in the path atribute ! >> >> What do you think, thanks again for the help ! >> >> Victor >> --=20 >> >> >> Victor Ducloux | Stagiaire >> T=E9l portable : >> >> *c o s m o s b a y ~ v e c t i s* >> >> 10, rue du Faubourg Poissonni=E8re - 75010 Paris - >> www.cosmosbay-vectis.com >> T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 >> >> 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - >> www.cosmosbay-vectis.com >> T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 >> >> Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne = - >> www.cosmosbay-vectis.com >> T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 >> Victor Ducloux | Stagiaire T=E9l portable : +33 6 60 41 76 03 *c o s m o s b a y ~ v e c t i s * Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Marc G. <mgu...@ya...> - 2005-04-25 08:30:33
|
If you use log4j with an xml config file, you can add: <category name="com.gargoylesoftware.htmlunit.javascript.host.Window"> <priority value="error"/> </category> for the standard propertie, it should be something like log4j.logger.com.gargoylesoftware.htmlunit.javascript.host.Window=error Marc. Brad Clarke wrote: > I'm sure it's possible to filter the setInterval warnings using log4j but I know > little about it. > > I learned XPath from this: > http://www.w3schools.com/xpath/default.asp > > > --- "Dantes, Ed" <Ed....@gd...> wrote: > >>Hello, >> Thank you for you previous responses, that helped very much...two >>more questions. >> 1)How can I take out those red WARNINGS thats clogging up my stack >>trace? >> >> 2)Is there any Xpath tutorial out there that can help me create XPath >>queries? >> >> >>Thanks >>Ed >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime info, > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Sridhar R. <Sri...@Su...> - 2005-04-22 15:24:31
|
Hello, How do I click a radio button which is part of the group using HtmlUnit ? Because they all have similar name/id but only the value is changed. I have to use click() so that it triggers the javascript onClick event. Thanks -- Sridhar R |
From: Ducloux V. <vdu...@co...> - 2005-04-22 15:03:12
|
Hello, is anyone out there that can give a comment or any idea please ??? I'm really stuck with this problem ! thanks in advance Ducloux Victor a =E9crit : > Hi everybody, I've started to use htmlUnit, i now browse into pages=20 > and test .... > > One problem is that i get this error : > > 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase=20 > processResponseHeaders > ATTENTION: Invalid cookie header:=20 > "JSESSIONID=3D45720B71F325CE4449A6EF0A3A1C6CA6; Path=3D". Missing value= =20 > for path attribute > > this appears after i give my login information, and then the internet=20 > site i develop (should) store this cookie! since there is an error=20 > storing the cookie, i don't get logged and i come back to the login pag= e. > > Note that this site works well (the cookie storing) with firefox & ie=20 > so i don't think so , as ther error message tells, that there is an=20 > error in the path atribute ! > > What do you think, thanks again for the help ! > > Victor > --=20 > > > Victor Ducloux | Stagiaire > T=E9l portable : > > *c o s m o s b a y ~ v e c t i s* > > 10, rue du Faubourg Poissonni=E8re - 75010 Paris - > www.cosmosbay-vectis.com > T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > > 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - > www.cosmosbay-vectis.com > T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 > > Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - > www.cosmosbay-vectis.com > T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 > |
From: Ducloux V. <vdu...@co...> - 2005-04-21 12:45:48
|
Hi everybody, I've started to use htmlUnit, i now browse into pages and=20 test .... One problem is that i get this error : 21 avr. 2005 14:39:31 org.apache.commons.httpclient.HttpMethodBase=20 processResponseHeaders ATTENTION: Invalid cookie header:=20 "JSESSIONID=3D45720B71F325CE4449A6EF0A3A1C6CA6; Path=3D". Missing value f= or=20 path attribute this appears after i give my login information, and then the internet=20 site i develop (should) store this cookie! since there is an error=20 storing the cookie, i don't get logged and i come back to the login page. Note that this site works well (the cookie storing) with firefox & ie so=20 i don't think so , as ther error message tells, that there is an error=20 in the path atribute ! What do you think, thanks again for the help ! Victor --=20 Victor Ducloux | Stagiaire T=E9l portable : *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - www.cosmosbay-vectis= .com T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Erskine, C. <chr...@ed...> - 2005-04-21 12:15:16
|
JDK 1.4 and above include their own loggers. It is not log4j. Commons-logger is designed to abstract the logging system from the code = so that you can use the logger of your choice. The JDK included one is = one option, as is log4j. I just wanted to be sure that you did have a = logger available to commons-logger to use. =20 Chris Erskine=20 =20 EDS Consulting Services=20 Colorado Springs, CO =20 =20 Phone: 719-265-5962=20 Cell: 719-640-6488=20 _____ =20 From: htm...@li... [mailto:htm...@li...] On Behalf Of Ducloux Victor Sent: Thursday, April 21, 2005 6:08 AM To: htm...@li... Subject: Re: [Htmlunit-user] Loggings =20 I'm using JDK 1.5, so I guess log4j must be ther .... thanks for the = help... I'l try configure my loggin now and let you all now.... Thanks Vic tor Erskine, Chris a =E9crit :=20 Also, what version of the JDK are you using. If you are not on 1.4, = then I do not think that you will have a logger unless you add one. A common = one which is supported by commons-logging is log4j. =20 Chris Erskine =20 EDS Consulting Services Colorado Springs, CO=20 =20 Phone: 719-265-5962 Cell: 719-640-6488 =20 =20 =20 -----Original Message----- From: htm...@li... <mailto:htm...@li...> = [mailto:htmlunit-user <mailto:htmlunit-user> - ad...@li... <mailto:ad...@li...> ] On = Behalf Of Mike Bowler Sent: Thursday, April 21, 2005 4:08 AM To: htm...@li... <mailto:htm...@li...>=20 Subject: Re: [Htmlunit-user] Loggings =20 Ducloux Victor wrote: =20 =20 Thanks for the answer .... i had already read that page. well I don't know but would like to learn how to use commons-loggings. =20 Since I don't know how to use that i wanted to do like told on that page, meaning i added this line : =20 =20 System.getProperties().put("org.apache.commons.logging.simplelog.default= lo g", =20 "trace"); =20 But where does this log go ? on the console ? or on a certain file, and if yes where is that file stored ???? =20 =20 It all depends which logger you are using. If you haven't explicitly configured anything then it will be going to standard out which is usually the console. If you have configured the logger you are using (configuration is different for each one) then the output will be going to whatever has been configured. =20 Information on configuring commons-logging can be found here -> http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging= /p <http://jakarta.apache.org/commons/logging/api/org/apache/commons/loggin= g/p> ackage-summary.html =20 Does this help? =20 -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com = <http://www.GargoyleSoftware.com>=20 Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ <http://www.SphericalImprovement.com/blogs/mbowler/>=20 =20 =20 =20 ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: = http://www.businessobjects.com/devxi/728 <http://www.businessobjects.com/devxi/728>=20 _______________________________________________ Htmlunit-user mailing list Htm...@li... <mailto:Htm...@li...>=20 https://lists.sourceforge.net/lists/listinfo/htmlunit-user <https://lists.sourceforge.net/lists/listinfo/htmlunit-user>=20 =20 =20 =20 ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime = info, new features, or free trial, at: = http://www.businessobjects.com/devxi/728 <http://www.businessobjects.com/devxi/728>=20 _______________________________________________ Htmlunit-user mailing list Htm...@li... <mailto:Htm...@li...>=20 https://lists.sourceforge.net/lists/listinfo/htmlunit-user <https://lists.sourceforge.net/lists/listinfo/htmlunit-user>=20 =20 =20 =20 --=20 Victor Ducloux | Stagiaire T=E9l portable :=20 c o s m o s b a y ~ v e c t i s 10, rue du Faubourg Poissonni=E8re - 75010 Paris - = www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> =20 T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com <http://www.cosmosbay-vectis.com> =20 T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Ducloux V. <vdu...@co...> - 2005-04-21 12:08:09
|
I'm using JDK 1.5, so I guess log4j must be ther .... thanks for the=20 help... I'l try configure my loggin now and let you all now.... Thanks Vic tor Erskine, Chris a =E9crit : >Also, what version of the JDK are you using. If you are not on 1.4, the= n I >do not think that you will have a logger unless you add one. A common o= ne >which is supported by commons-logging is log4j. > >Chris Erskine >=20 >EDS Consulting Services >Colorado Springs, CO=20 >=20 >Phone: 719-265-5962 >Cell: 719-640-6488 > > > =20 > >>-----Original Message----- >>From: htm...@li... [mailto:htmlunit-user- >>ad...@li...] On Behalf Of Mike Bowler >>Sent: Thursday, April 21, 2005 4:08 AM >>To: htm...@li... >>Subject: Re: [Htmlunit-user] Loggings >> >>Ducloux Victor wrote: >> >> =20 >> >>>Thanks for the answer .... i had already read that page. well I don't >>>know but would like to learn how to use commons-loggings. >>> >>>Since I don't know how to use that i wanted to do like told on that >>>page, meaning i added this line : >>> >>> =20 >>> >>System.getProperties().put("org.apache.commons.logging.simplelog.defaul= tlo >>g", >> =20 >> >>>"trace"); >>> >>>But where does this log go ? on the console ? or on a certain file, >>>and if yes where is that file stored ???? >>> =20 >>> >>It all depends which logger you are using. If you haven't explicitly >>configured anything then it will be going to standard out which is >>usually the console. If you have configured the logger you are using >>(configuration is different for each one) then the output will be going >>to whatever has been configured. >> >>Information on configuring commons-logging can be found here -> >>http://jakarta.apache.org/commons/logging/api/org/apache/commons/loggin= g/p >>ackage-summary.html >> >>Does this help? >> >>-- >>Mike Bowler >>President, Gargoyle Software Inc. >>Website: http://www.GargoyleSoftware.com >>Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: New Crystal Reports XI. >>Version 11 adds new functionality designed to reduce time involved in >>creating, integrating, and deploying reporting solutions. Free runtime >>info, >>new features, or free trial, at: http://www.businessobjects.com/devxi/7= 28 >>_______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> =20 >> > > >------------------------------------------------------- >This SF.Net email is sponsored by: New Crystal Reports XI. >Version 11 adds new functionality designed to reduce time involved in >creating, integrating, and deploying reporting solutions. Free runtime i= nfo, >new features, or free trial, at: http://www.businessobjects.com/devxi/72= 8 >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > =20 > --=20 Victor Ducloux | Stagiaire T=E9l portable : *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Erskine, C. <chr...@ED...> - 2005-04-21 11:22:09
|
Also, what version of the JDK are you using. If you are not on 1.4, then I do not think that you will have a logger unless you add one. A common one which is supported by commons-logging is log4j. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 Cell: 719-640-6488 > -----Original Message----- > From: htm...@li... [mailto:htmlunit-user- > ad...@li...] On Behalf Of Mike Bowler > Sent: Thursday, April 21, 2005 4:08 AM > To: htm...@li... > Subject: Re: [Htmlunit-user] Loggings > > Ducloux Victor wrote: > > > Thanks for the answer .... i had already read that page. well I don't > > know but would like to learn how to use commons-loggings. > > > > Since I don't know how to use that i wanted to do like told on that > > page, meaning i added this line : > > > System.getProperties().put("org.apache.commons.logging.simplelog.defaultlo > g", > > "trace"); > > > > But where does this log go ? on the console ? or on a certain file, > > and if yes where is that file stored ???? > > > It all depends which logger you are using. If you haven't explicitly > configured anything then it will be going to standard out which is > usually the console. If you have configured the logger you are using > (configuration is different for each one) then the output will be going > to whatever has been configured. > > Information on configuring commons-logging can be found here -> > http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/p > ackage-summary.html > > Does this help? > > -- > Mike Bowler > President, Gargoyle Software Inc. > Website: http://www.GargoyleSoftware.com > Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime > info, > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Mike B. <mb...@Ga...> - 2005-04-21 10:08:09
|
Ducloux Victor wrote: > Thanks for the answer .... i had already read that page. well I don't > know but would like to learn how to use commons-loggings. > > Since I don't know how to use that i wanted to do like told on that > page, meaning i added this line : > System.getProperties().put("org.apache.commons.logging.simplelog.defaultlog", > "trace"); > > But where does this log go ? on the console ? or on a certain file, > and if yes where is that file stored ???? It all depends which logger you are using. If you haven't explicitly configured anything then it will be going to standard out which is usually the console. If you have configured the logger you are using (configuration is different for each one) then the output will be going to whatever has been configured. Information on configuring commons-logging can be found here -> http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html Does this help? -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ |
From: Ducloux V. <vdu...@co...> - 2005-04-21 09:53:19
|
Mike Bowler a =E9crit : > Ducloux Victor wrote: > >> I just wanted to know where were the loggings stored (failure error=20 >> notices)??? >> Were can I configure log4j.... since I don't know this tool , is=20 >> there a default configuration...? > > > > Have you seen this page? -> http://htmlunit.sourceforge.net/logging.htm= l > > If that page doesn't give you enough information to get started then=20 > please let us know what is missing. > Thanks for the answer .... i had already read that page. well I don't=20 know but would like to learn how to use commons-loggings. Since I don't know how to use that i wanted to do like told on that=20 page, meaning i added this line : System.getProperties().put("org.apache.commons.logging.simplelog.defaultl= og",=20 "trace"); But where does this log go ? on the console ? or on a certain file, and=20 if yes where is that file stored ???? Thakns in advance .... Victor --=20 Victor Ducloux | Stagiaire T=E9l portable : +33 6 60 41 76 03 *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - www.cosmosbay-vectis= .com T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: Mike B. <mb...@Ga...> - 2005-04-21 09:44:32
|
Ducloux Victor wrote: > I just wanted to know where were the loggings stored (failure error > notices)??? > Were can I configure log4j.... since I don't know this tool , is there > a default configuration...? Have you seen this page? -> http://htmlunit.sourceforge.net/logging.html If that page doesn't give you enough information to get started then please let us know what is missing. -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ |
From: Ducloux V. <vdu...@co...> - 2005-04-21 08:05:33
|
Hello everybody.... I just wanted to know where were the loggings stored (failure error=20 notices)??? Were can I configure log4j.... since I don't know this tool , is there a=20 default configuration...? Thanks in advance, you all are really so helpfull.... --=20 Victor Ducloux | Stagiaire T=E9l portable : *c o s m o s b a y ~ v e c t i s* 10, rue du Faubourg Poissonni=E8re - 75010 Paris - www.cosmosbay-vectis.com T=E9l g=E9n=E9ral : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 158, rue du 4 ao=FBt 1789 - 69100 Villeurbanne - www.cosmosbay-vectis= .com T=E9l. g=E9n=E9ral : +33 4 72 65 21 00 - Fax : +33 4 78 85 58 24 Chemin de Saint-Lambert, Actiburo 1, B=E2timent A - 13400 Aubagne - www.cosmosbay-vectis.com T=E9l. g=E9n=E9ral : +33 4 91 87 81 08 - Fax : +33 4 91 87 81 09 |
From: <ddk...@ki...> - 2005-04-20 19:15:49
|
In the project I just finished up, we had a requirement to test that certain text entered in a text field (or textare field) in one part of our application would appear in another part of the application. To do this, we put <span></span> tags around the text (unless it was already contained by another tag, like <h1></h1>), then set a unique "id" attribute on the <span> or other tag. <span id="heading-foo-bar">Baz Heading</span> This allowed us to "find" the tag we were looking for on the page (by the "id" attribute), then grab the contents of the tag to assert that it matched the original text entered. Usually, we also added either "style" or "class" attributes to the <span> tag to style the text as well. Note that the <span> does not alter the formatting of the page (unless you start adding "style" or "class" attributes), so it's a great way to "find" the text you're looking for immediately. Dave On Wed, Apr 20, 2005 at 06:06:06PM +0200, Ducloux Victor wrote: > Hi everybody, I succeeding in doing some things with htmlunit and forms... > but now I would like to know how to search a certain text in a web page > like 'Welcome to my web page'... > > I really can't find out in the api doc.... > Thanks in advance, > > Victor |
From: Brad C. <yo...@br...> - 2005-04-20 17:30:17
|
I'm sure it's possible to filter the setInterval warnings using log4j but I know little about it. I learned XPath from this: http://www.w3schools.com/xpath/default.asp --- "Dantes, Ed" <Ed....@gd...> wrote: > Hello, > Thank you for you previous responses, that helped very much...two > more questions. > 1)How can I take out those red WARNINGS thats clogging up my stack > trace? > > 2)Is there any Xpath tutorial out there that can help me create XPath > queries? > > > Thanks > Ed > |
From: Dan L. <dl...@ca...> - 2005-04-20 17:29:27
|
Taking out the Red WARNINGS: Current implementation of setInterval does nothing.I find w3schools.com to be a great resource for into to and ref of many technologies including XPath. http://www.w3schools.com/xpath/default.asp -----Original Message----- From: htm...@li... [mailto:htm...@li...]On Behalf Of Dantes, Ed Sent: Wednesday, April 20, 2005 10:19 AM To: htm...@li... Subject: [Htmlunit-user] Taking out the Red WARNINGS: Current implementation of setInterval does nothing. Hello, Thank you for you previous responses, that helped very much...two more questions. 1)How can I take out those red WARNINGS thats clogging up my stack trace? 2)Is there any Xpath tutorial out there that can help me create XPath queries? Thanks Ed |
From: Dantes, E. <Ed....@gd...> - 2005-04-20 17:23:40
|
Hello, Thank you for you previous responses, that helped very much...two more questions. 1)How can I take out those red WARNINGS thats clogging up my stack trace? =20 2)Is there any Xpath tutorial out there that can help me create XPath queries? Thanks Ed |
From: Brad C. <yo...@br...> - 2005-04-20 16:39:07
|
Define "text" :D Anything appearing in source from the server? Anything in the generated XML DOM? Text that -could- be visible to browsers? Text that -is- visible? XML comments? With or without whitespace compression done by browsers? Including <script> blocks that have already been executed? Including included JavaScript files? CSS files? I strongly suggest not looking for anything this way and using the classes provided by HtmlUnit to more specifically look for things you expect/don't expect to exist. While I do this sort of text searching myself in a couple of places, I keep it very isolated and completely hidden from my actual test cases. The -only- reason I do it at all is because the server I'm testing against can produce errors at any point in the source code and there is no other reliable way to detect these errors (it's really not that reliable but it's all I got). Brad C --- Ducloux Victor <vdu...@co...> wrote: > Hi everybody, I succeeding in doing some things with htmlunit and forms... > but now I would like to know how to search a certain text in a web page > like 'Welcome to my web page'... > > I really can't find out in the api doc.... > Thanks in advance, > > > Victor > > -- > > > Victor Ducloux | Stagiaire > Tél portable : +33 6 60 41 76 03 > > *c o s m o s b a y ~ v e c t i s* > > 10, rue du Faubourg Poissonnière - 75010 Paris - > www.cosmosbay-vectis.com > Tél général : +33 1 53 24 67 80 - Fax : +33 1 53 24 67 89 > > > |