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: Vinay M. <vin...@gm...> - 2004-10-18 13:03:33
|
Hi, > EcmaError: lineNumber=[1] column=[6] lineSource=[return frmSubmit()] > name=[SyntaxError] sourceName=[body.onLoad] message=[invalid return] > errorObject=[SyntaxError: invalid return] > com.gargoylesoftware.htmlunit.ScriptException: invalid return The problem is in the onload handler of the new page that has just been loaded. What does frmSubmit() return? The page I am trying to access through a link happens to be a .asp . Interestingly, frmSubmit() doesn't figure anywhere in the page that loads up freshly or the page where the link to this new page lies. Actually, when I click on the link, I get a new browser window(minus the tabs). And I noticed some kind of an activity additionally on the previous window where the link lies.(a frame blanking out and then getting loaded with the same previous contents) Also, has the "clicking on an image" feature included in the latest stable release ? Best Regards, Vinay |
From: Mike B. <mb...@Ga...> - 2004-10-18 10:47:53
|
Vinay Murthy wrote: > I would want to know of a way to get access to a window that may pop > up when an "anchor" gets clicked. Should I be using WebClient's > getCurrentWindow() ? The click() method will return the new page that was loaded (or the current page if a new page wasn't loaded). You can ask that page what window it is in with getEnclosingWindow(). > Also I noticed that, on a particular page, whenever I clicked on an > anchor that produced a pop up, I ended up with an exception trace > like: > > EcmaError: lineNumber=[1] column=[6] lineSource=[return frmSubmit()] > name=[SyntaxError] sourceName=[body.onLoad] message=[invalid return] > errorObject=[SyntaxError: invalid return] > com.gargoylesoftware.htmlunit.ScriptException: invalid return The problem is in the onload handler of the new page that has just been loaded. What does frmSubmit() return? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Vinay M. <vin...@gm...> - 2004-10-18 06:53:11
|
I have also registered a WebWindowListener with my webclient to detect any pop-up windows that maight show up. Apparently, the exception occurs much before the WebWindowListener is routed the event of a window opening up. Regards Vinay |
From: Vinay M. <vin...@gm...> - 2004-10-18 06:48:59
|
Hi, I would want to know of a way to get access to a window that may pop up when an "anchor" gets clicked. Should I be using WebClient's getCurrentWindow() ? Also I noticed that, on a particular page, whenever I clicked on an anchor that produced a pop up, I ended up with an exception trace like: EcmaError: lineNumber=[1] column=[6] lineSource=[return frmSubmit()] name=[SyntaxError] sourceName=[body.onLoad] message=[invalid return] errorObject=[SyntaxError: invalid return] com.gargoylesoftware.htmlunit.ScriptException: invalid return at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:264) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:702) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeOneOnLoadHandler(HtmlPage.java:923) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeOnLoadHandlersIfNeeded(HtmlPage.java:903) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:155) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:576) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:358) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:109) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107) I didnt have any specific mechanism in place to handle the pop-up. Could this be a reason for the exception to materialise ? Best Regards Vinay |
From: Vinay M. <vin...@gm...> - 2004-10-16 04:54:23
|
Hi, yeah, I used getEnclosedPage() and was able to view the text using asText(). Thanks for the help. Best Regards Vinay |
From: Mike B. <mb...@Ga...> - 2004-10-16 00:31:42
|
Vinay Murthy wrote: > I used htmlunit to log onto a site having a couple of frames. To > confirm that I am at the right page, I tried dumping > (HtmlPage)page.asText() and I ended up with a message "Frames are > required. Microsoft IE 3.0 or greater and Netscape 2.0 or greater > support frames." > > Can somebody help me around two issues please ? > 1. asText() should return me the page as it is seen in the browser. > This I presume is the html of the page. Can I be validated here ? Right, although it appears that we haven't added specific handling for the noframe tag. > 2. I believe I havent been able to successfully get to the page I > needed because of the frames. Is there a way to get around this too ? The content for the frames has most likely already been loaded. You can call getEnclosedPage() on the HtmlFrame instance to get at the content inside that frame. > P.S: for the benefit of the list, I did like to mention that, https > connections fail on older versions of j2sdk 1.4 Interesting. I'll have to remember that one. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Vinay M. <vin...@gm...> - 2004-10-15 16:06:46
|
Hi, I used htmlunit to log onto a site having a couple of frames. To confirm that I am at the right page, I tried dumping (HtmlPage)page.asText() and I ended up with a message "Frames are required. Microsoft IE 3.0 or greater and Netscape 2.0 or greater support frames." Can somebody help me around two issues please ? 1. asText() should return me the page as it is seen in the browser. This I presume is the html of the page. Can I be validated here ? 2. I believe I havent been able to successfully get to the page I needed because of the frames. Is there a way to get around this too ? Thanks a lot, Best Regards Vinay P.S: for the benefit of the list, I did like to mention that, https connections fail on older versions of j2sdk 1.4. SSL support comes intergrated with 1.4, but apparently certain Verisign certificates included there have expired. Therefore it would be better to upgrade to the latest j2sdk version available(1.4.2_06). Otherwise we might end up with an exception saying "no trusted certificate found" |
From: Mike B. <mb...@Ga...> - 2004-10-15 10:45:15
|
Vinay Murthy wrote: > I would want to know if htmlUnit provides a feature to cache > frequently visited pages ? No, it doesn't. > Also, I would like to know of the authentication schemes used by > htmlUnit . Does use the schemes provided by httpClient ? At present, the only authentication scheme exposed by HtmlUnit is basic authentication. The plan is to expose the underlying copy of commons-httpclient so that you have full access to all the functionality it offers (this will address a number of open bugs). Unfortunately, this isn't trivial with commons-httpclient 2.x so I've been waiting for their 3.x code to stabilize. Due to limitations in the 2.x code, HtmlUnit has to manage multiple instances of commons-httpclient for each WebClient so it isn't a simple matter of exposing the underlying implementation. With the 3.x code, we'll be able to have only one httpclient per WebClient which makes things easier. The 3.x series of commons-httpclient is currently in alpha so I'm hesitant to add a dependency to it right now. 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: Vinay M. <vin...@gm...> - 2004-10-15 10:16:03
|
Hi, Can somebody help me out on these : I would want to know if htmlUnit provides a feature to cache frequently visited pages ? Also, I would like to know of the authentication schemes used by htmlUnit . Does use the schemes provided by httpClient ? Regards Vinay |
From: Brad C. <yo...@br...> - 2004-10-14 19:31:51
|
Looks like the onsubmit on the form containing the submit input you clicked is setting document.location.href to somewhere that doesn't return a response. I briefly tried to do a yahoo mail login and it wouldn't accept my password for some reason, but I got no exceptions. --- Vinay Murthy <vin...@gm...> wrote: > Hi, > I am new to htmlunit. I was trying to use htmlunit to log into my mail > account, but encountered the following exception trace: > > java.net.ConnectException: Connection timed out: connect ... com.gargoylesoftware.htmlunit.javascript.host.Window.jsSet_location(Window.java:302) ... > com.gargoylesoftware.htmlunit.javascript.host.Location.jsSet_href(Location.java:75) ... com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:256) ... com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:699) ... > at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:148) ... com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:77) ... com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107) ... > com.trilogy.quickstart.htmlunit.test.TestYahooMail.testLogin(TestYahooMail.java:68) ... > Can somebody help me out here ? > > Regards > Vinay > |
From: Vinay M. <vin...@gm...> - 2004-10-14 15:46:42
|
Hi, I am new to htmlunit. I was trying to use htmlunit to log into my mail account, but encountered the following exception trace: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:105) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:663) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:661) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:149) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1302) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1281) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1343) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1281) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1343) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:523) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326) at com.gargoylesoftware.htmlunit.javascript.host.Window.jsSet_location(Window.java:302) at com.gargoylesoftware.htmlunit.javascript.host.Location.jsSet_href(Location.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.ScriptableObject.setBySetter(ScriptableObject.java:294) at org.mozilla.javascript.ScriptableObject.put(ScriptableObject.java:256) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.put(SimpleScriptable.java:435) at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:1476) at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:842) at org.mozilla.javascript.gen.c38.call(Embedded script:241) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c43.call(Wrapper definition for onSubmit:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) at org.mozilla.javascript.gen.c45.call(onSubmit:1) at org.mozilla.javascript.gen.c45.exec(onSubmit) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:256) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:699) at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:148) at com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:77) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107) at com.trilogy.quickstart.htmlunit.test.TestYahooMail.testLogin(TestYahooMail.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at junit.textui.TestRunner.doRun(TestRunner.java:109) at junit.textui.TestRunner.run(TestRunner.java:72) Can somebody help me out here ? Regards Vinay |
From: Brad C. <yo...@br...> - 2004-10-14 15:39:12
|
More IE specific stuff :) http://msdn.microsoft.com/workshop/author/behaviors/reference/methods/ishomepage.asp Please log a bug (or submit a patch) and we'll get it implemented. Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > Reading the error, it is not the document.body that is having a problem. It > looks like it is trying to call a function called isHomePage() which may not > be defined. How are you defining it? I did not see it on the site when I > went looking for it. > > Chris Erskine > > EDS Consulting Services > F5-EDS-001 > 2424 Garden of the Gods Rd > Colorado Springs, CO 80919 > > Phone: 719-535-6064 > > Phone: > mailto:chr...@ed... > -----Original Message----- > From: Vinay Murthy [mailto:vin...@gm...] > Sent: Thursday, October 14, 2004 8:17 AM > To: htm...@li... > Subject: [Htmlunit-user] problem with javascript in Release 1.3-pre2 - > September 26, 2004 > > Hi, > I was using htmlunit to access the site "http://www.imdb.com". I got > an exception trace which looked like this : > > EcmaError: lineNumber=[5] column=[0] lineSource=[ > ishp=(document.body.isHomePage(us) || > document.body.isHomePage(us+'/'));] name=[TypeError] > sourceName=[Embedded script] message=[undefined is not a function.] > errorObject=[TypeError: undefined is not a function.] > com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript > Engine.java:264) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html > Page.java:702) > at > com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:2 > 74) > at > com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233) > at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) > at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) > at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown > Source) > at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) > at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) > at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP > arser.java:279) > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC > reator.java:110) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat > or.java:82) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 > 69) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:270) > at > com.trilogy.quickstart.htmlunit.test.TestIMDB.testSubscription(TestIMDB.java > :38) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > It is due to the use of document.body ? I noticed there's a bug > relating to document.body fixed in the existing version of htmlunit. I > should also mention that in the case of imd.com, the use of > document.body is within <body></body> > > Regards > Vinay > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Erskine, C. <chr...@ed...> - 2004-10-14 14:51:15
|
Reading the error, it is not the document.body that is having a problem. It looks like it is trying to call a function called isHomePage() which may not be defined. How are you defining it? I did not see it on the site when I went looking for it. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Vinay Murthy [mailto:vin...@gm...] Sent: Thursday, October 14, 2004 8:17 AM To: htm...@li... Subject: [Htmlunit-user] problem with javascript in Release 1.3-pre2 - September 26, 2004 Hi, I was using htmlunit to access the site "http://www.imdb.com". I got an exception trace which looked like this : EcmaError: lineNumber=[5] column=[0] lineSource=[ ishp=(document.body.isHomePage(us) || document.body.isHomePage(us+'/'));] name=[TypeError] sourceName=[Embedded script] message=[undefined is not a function.] errorObject=[TypeError: undefined is not a function.] com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:264) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:702) at com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:2 74) at com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233) at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown Source) at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 69) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:270) at com.trilogy.quickstart.htmlunit.test.TestIMDB.testSubscription(TestIMDB.java :38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) It is due to the use of document.body ? I noticed there's a bug relating to document.body fixed in the existing version of htmlunit. I should also mention that in the case of imd.com, the use of document.body is within <body></body> Regards Vinay ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Vinay M. <vin...@gm...> - 2004-10-14 14:16:41
|
Hi, I was using htmlunit to access the site "http://www.imdb.com". I got an exception trace which looked like this : EcmaError: lineNumber=[5] column=[0] lineSource=[ ishp=(document.body.isHomePage(us) || document.body.isHomePage(us+'/'));] name=[TypeError] sourceName=[Embedded script] message=[undefined is not a function.] errorObject=[TypeError: undefined is not a function.] com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:264) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:702) at com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:274) at com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233) at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown Source) at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:279) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:569) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:270) at com.trilogy.quickstart.htmlunit.test.TestIMDB.testSubscription(TestIMDB.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) It is due to the use of document.body ? I noticed there's a bug relating to document.body fixed in the existing version of htmlunit. I should also mention that in the case of imd.com, the use of document.body is within <body></body> Regards Vinay |
From: Yuri U. <yur...@gm...> - 2004-10-10 20:07:57
|
Thanks, I've found what it was... The php server (4.3.6) dropped cookies if they were not in single line. I've modified HttpWebConnection to set HttpClient's single cookie mode and it worked. Regards, Yuri On Sat, 09 Oct 2004 21:07:29 -0400, Mike Bowler <mb...@ga...> wrote: > Yuri Ushakov wrote: > > Why could htmlunit (or httpclient?) behave so? Is there a way to look > > into cookies somehow? I'd grealy appreciate any help... > > The cookie support is all handled by commons-httpclient and it works > fine for all the sites that I test. How is authentication working? Is > it form based, basic or digest? (or something else entirely?) > > When I'm debugging problems like this, I usually use a sniffer to look > at the exact traffic going back and forth. I use the open source > sniffer Ethereal which is available for a whole slew of platforms - > http://www.ethereal.com/ |
From: Mike B. <mb...@Ga...> - 2004-10-10 01:07:39
|
Yuri Ushakov wrote: > Why could htmlunit (or httpclient?) behave so? Is there a way to look > into cookies somehow? I'd grealy appreciate any help... The cookie support is all handled by commons-httpclient and it works fine for all the sites that I test. How is authentication working? Is it form based, basic or digest? (or something else entirely?) When I'm debugging problems like this, I usually use a sniffer to look at the exact traffic going back and forth. I use the open source sniffer Ethereal which is available for a whole slew of platforms - http://www.ethereal.com/ -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Yuri U. <yur...@gm...> - 2004-10-09 21:09:35
|
Hello, I've tried 1.3pre2 and 1.2.3, and there is one problem. I'm trying to browse a php web-site which requires logging in, and it seem not to see the HttpClient's cookies. If I take Mozilla or IE and submit login/password, I'm redirected to a "login ok" page. If I repeat the same with WebClient, I'm thrown to the main page with "login failed" state. HttpClient is 2.0.1 (I've used 2.0-rc2 from the htmlunit distro, but the problem persists). Why could htmlunit (or httpclient?) behave so? Is there a way to look into cookies somehow? I'd grealy appreciate any help... Thanks, Yuri. |
From: Erskine, C. <chr...@ed...> - 2004-10-09 13:13:41
|
I was getting entries like 2004-10-08 15:57:47,004 DEBUG js.log - Now build JS function function GargoyleWrapper1223() {printOn() } repeatedly. The print on function is called from inline script code (not buried in an function). function printOn() { if (parent.topFrame != null) { if(parent.topFrame.document.readyState != 'complete') { setTimeout('printOn()', 500); return; } parent.topFrame.topPrintOn(); } } This function not finding the readyState since it is currently not modeled in htmlUnit so it generated and a new wrapper for the setTimeout function. Because of the code, the function was being called every half second to recreate itself. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Mike Bowler [mailto:mb...@Ga...] Sent: Friday, October 08, 2004 8:07 PM To: htm...@li... Subject: Re: [Htmlunit-user] Javascript error Erskine, Chris wrote: > I have found that is the only way to debug javascript. My problem is that I > need to find what code is wrapped in GargoyleWrapper15 to find where I have > to start putting my alerts. Code only gets put in a wrapper if it was specified in an event handler (onload, onsubmit etc) or a javascript url. Hopefully there aren't that many of those in the code you're looking at. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Mike B. <mb...@Ga...> - 2004-10-09 02:06:49
|
Erskine, Chris wrote: > I have found that is the only way to debug javascript. My problem is that I > need to find what code is wrapped in GargoyleWrapper15 to find where I have > to start putting my alerts. Code only gets put in a wrapper if it was specified in an event handler (onload, onsubmit etc) or a javascript url. Hopefully there aren't that many of those in the code you're looking at. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Erskine, C. <chr...@ed...> - 2004-10-08 22:25:22
|
I have found this problem. I am coding to IE only and using the document.readyState to set a timeout. Since readyState is not coded, I keep resubmitting the function. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Erskine, Chris [mailto:chr...@ed...] Sent: Friday, October 08, 2004 3:42 PM To: htm...@li... Subject: RE: [Htmlunit-user] Javascript error I have found where to add a patch that reports the code for each wrapped function to a logger. One that that I discovered doing this is there is some loop in the htmlUnit code that keeps wrapping the function calls that I have coded into the page. These calls are inline on the page wrapped with <script> tags. Should this code keep looping an a page? Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Erskine, Chris [mailto:chr...@ed...] Sent: Friday, October 08, 2004 9:19 AM To: htm...@li... Subject: RE: [Htmlunit-user] Javascript error I have found that is the only way to debug javascript. My problem is that I need to find what code is wrapped in GargoyleWrapper15 to find where I have to start putting my alerts. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Brad Clarke [mailto:yo...@br...] Sent: Friday, October 08, 2004 8:57 AM To: htm...@li... Subject: Re: [Htmlunit-user] Javascript error I always end up with about 20 alert() calls in my javascript when something goes wrong :/ Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > I am getting the following error. Is there a way to determine what the code > in GargoyleWrapper15 is the better find what is causing this problem? > > > EcmaError: lineNumber=[0] column=[0] lineSource=[GargoyleWrapper15()] > name=[ConversionError] sourceName=[null] message=[The undefined value has no > properties.] errorObject=[ConversionError: The undefined value has no > properties.] > ... > == CALLING JAVASCRIPT == > GargoyleWrapper15() > ======= EXCEPTION END ======== > > Chris Erskine ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Erskine, C. <chr...@ed...> - 2004-10-08 21:42:16
|
I have found where to add a patch that reports the code for each wrapped function to a logger. One that that I discovered doing this is there is some loop in the htmlUnit code that keeps wrapping the function calls that I have coded into the page. These calls are inline on the page wrapped with <script> tags. Should this code keep looping an a page? Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Erskine, Chris [mailto:chr...@ed...] Sent: Friday, October 08, 2004 9:19 AM To: htm...@li... Subject: RE: [Htmlunit-user] Javascript error I have found that is the only way to debug javascript. My problem is that I need to find what code is wrapped in GargoyleWrapper15 to find where I have to start putting my alerts. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Brad Clarke [mailto:yo...@br...] Sent: Friday, October 08, 2004 8:57 AM To: htm...@li... Subject: Re: [Htmlunit-user] Javascript error I always end up with about 20 alert() calls in my javascript when something goes wrong :/ Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > I am getting the following error. Is there a way to determine what the code > in GargoyleWrapper15 is the better find what is causing this problem? > > > EcmaError: lineNumber=[0] column=[0] lineSource=[GargoyleWrapper15()] > name=[ConversionError] sourceName=[null] message=[The undefined value has no > properties.] errorObject=[ConversionError: The undefined value has no > properties.] > ... > == CALLING JAVASCRIPT == > GargoyleWrapper15() > ======= EXCEPTION END ======== > > Chris Erskine ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Erskine, C. <chr...@ed...> - 2004-10-08 15:20:15
|
I have found that is the only way to debug javascript. My problem is that I need to find what code is wrapped in GargoyleWrapper15 to find where I have to start putting my alerts. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Brad Clarke [mailto:yo...@br...] Sent: Friday, October 08, 2004 8:57 AM To: htm...@li... Subject: Re: [Htmlunit-user] Javascript error I always end up with about 20 alert() calls in my javascript when something goes wrong :/ Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > I am getting the following error. Is there a way to determine what the code > in GargoyleWrapper15 is the better find what is causing this problem? > > > EcmaError: lineNumber=[0] column=[0] lineSource=[GargoyleWrapper15()] > name=[ConversionError] sourceName=[null] message=[The undefined value has no > properties.] errorObject=[ConversionError: The undefined value has no > properties.] > ... > == CALLING JAVASCRIPT == > GargoyleWrapper15() > ======= EXCEPTION END ======== > > Chris Erskine ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Brad C. <yo...@br...> - 2004-10-08 14:57:11
|
I always end up with about 20 alert() calls in my javascript when something goes wrong :/ Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > I am getting the following error. Is there a way to determine what the code > in GargoyleWrapper15 is the better find what is causing this problem? > > > EcmaError: lineNumber=[0] column=[0] lineSource=[GargoyleWrapper15()] > name=[ConversionError] sourceName=[null] message=[The undefined value has no > properties.] errorObject=[ConversionError: The undefined value has no > properties.] > ... > == CALLING JAVASCRIPT == > GargoyleWrapper15() > ======= EXCEPTION END ======== > > Chris Erskine |
From: Erskine, C. <chr...@ed...> - 2004-10-08 13:03:16
|
I am getting the following error. Is there a way to determine what the code in GargoyleWrapper15 is the better find what is causing this problem? EcmaError: lineNumber=[0] column=[0] lineSource=[GargoyleWrapper15()] name=[ConversionError] sourceName=[null] message=[The undefined value has no properties.] errorObject=[ConversionError: The undefined value has no properties.] com.gargoylesoftware.htmlunit.ScriptException: The undefined value has no properties. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:275) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:700) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:240) at java.lang.Thread.run(Thread.java:534) Enclosed exception: ConversionError: The undefined value has no properties. at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:716) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2035) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163) at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62) at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55) at org.mozilla.javascript.Context.evaluateReader(Context.java:820) at org.mozilla.javascript.Context.evaluateString(Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:267) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html Page.java:700) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:240) at java.lang.Thread.run(Thread.java:534) == CALLING JAVASCRIPT == GargoyleWrapper15() ======= EXCEPTION END ======== Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... <mailto:chr...@ed...> |
From: Mike B. <mb...@Ga...> - 2004-10-06 21:51:23
|
Erskine, Chris wrote: > Working with frames, I load a new page that is a frameset. After > loading the frame set, if I call webClient.getCurrentWindow(), > > I get a frame which is the last frame loaded rather than getting the top > level window that I loaded the frameset into. Is this the normal > expected behavior? I would expect that the current window would be the frameset. Oops. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |