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: gaurab.pradhan <mer...@gm...> - 2015-07-29 05:48:33
|
Dear All, While processing JavaScript and AJAX site i am getting and out of memory exception. The code was working perfectly for last 1-2 years, from last month i am receiving this exception. I have tired many option like by closing all the windows after completing the task. Can anyone help me?? Thanks in advance at com.gargoylesoftware.htmlunit.html.DomElement.printXml(DomElement.java:162) at com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:826) at com.gargoylesoftware.htmlunit.html.DomElement.printXml(DomElement.java:172) at com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:826) at com.gargoylesoftware.htmlunit.html.DomElement.printXml(DomElement.java:172) at com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:826) at com.gargoylesoftware.htmlunit.html.DomElement.printXml(DomElement.java:172) at com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:826) at com.gargoylesoftware.htmlunit.html.DomElement.printXml(DomElement.java:172) at com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:826) at com.gargoylesoftware.htmlunit.html.DomElement.printXml(DomElement.java:172) at com.gargoylesoftware.htmlunit.html.DomNode.asXml(DomNode.java:799) at com.gargoylesoftware.htmlunit.SgmlPage.asXml(SgmlPage.java:213) -- View this message in context: http://htmlunit.10904.n7.nabble.com/OutOfMemoryError-Java-heap-space-tp36797.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ronald B. <rb...@rb...> - 2015-07-26 18:59:14
|
Dear all, the HtmlUnit team would like to announce the availability of version 2.18 The main enhancements are: - IE11 and FF38 support is mature - SvgPage is added, and supports events (e.g. click()) - Improvement to .type(), with Keybaord helper - Supporting clipboard copy/cut/paste - Support PATCH Method for HTTP - As always, many bug fixes Changes list can be found in http://htmlunit.sourceforge.net/changes-report.html#a2.18 Because of the SourceForge Infrastructure problems we can't upload the artifacts to the usual download location. As soon as SF is back in service we will made the files available. Until than you can download the files from the usual maven repositories. Happy testing! The HtmlUnit team |
From: Parham, C. <cp...@bi...> - 2015-07-13 18:45:36
|
Confirmed it is working for me too. Thank you. From: Ahmed Ashour [mailto:asa...@ya...] Sent: Friday, July 10, 2015 5:00 PM To: htm...@li... Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined Hi again, Your last case works now. If you have more issues, please read https://sourceforge.net/p/htmlunit/code/HEAD/tree/trunk/htmlunit/src/site/xdoc/submittingJSBugs.xml Ahmed ________________________________ From: "Parham, Clinton" <cp...@bi...<mailto:cp...@bi...>> To: Ahmed Ashour <asa...@ya...<mailto:asa...@ya...>>; "htm...@li...<mailto:htm...@li...>" <htm...@li...<mailto:htm...@li...>> Sent: Friday, July 10, 2015 9:08 PM Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined Thank you for the reply… I’m looking forward to hearing more. ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-07-10 21:03:04
|
Hi again, Your last case works now. If you have more issues, please read https://sourceforge.net/p/htmlunit/code/HEAD/tree/trunk/htmlunit/src/site/xdoc/submittingJSBugs.xml Ahmed From: "Parham, Clinton" <cp...@bi...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Friday, July 10, 2015 9:08 PM Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined #yiv4239493039 #yiv4239493039 -- _filtered #yiv4239493039 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv4239493039 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv4239493039 {font-family:HelveticaNeue;}#yiv4239493039 #yiv4239493039 p.yiv4239493039MsoNormal, #yiv4239493039 li.yiv4239493039MsoNormal, #yiv4239493039 div.yiv4239493039MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv4239493039 a:link, #yiv4239493039 span.yiv4239493039MsoHyperlink {color:blue;text-decoration:underline;}#yiv4239493039 a:visited, #yiv4239493039 span.yiv4239493039MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv4239493039 p.yiv4239493039MsoAcetate, #yiv4239493039 li.yiv4239493039MsoAcetate, #yiv4239493039 div.yiv4239493039MsoAcetate {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;}#yiv4239493039 p.yiv4239493039msonormal, #yiv4239493039 li.yiv4239493039msonormal, #yiv4239493039 div.yiv4239493039msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv4239493039 p.yiv4239493039msonormal1, #yiv4239493039 li.yiv4239493039msonormal1, #yiv4239493039 div.yiv4239493039msonormal1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv4239493039 p.yiv4239493039msochpdefault, #yiv4239493039 li.yiv4239493039msochpdefault, #yiv4239493039 div.yiv4239493039msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv4239493039 span.yiv4239493039msohyperlink {}#yiv4239493039 span.yiv4239493039msohyperlinkfollowed {}#yiv4239493039 span.yiv4239493039msohyperlink1 {}#yiv4239493039 span.yiv4239493039msohyperlinkfollowed1 {}#yiv4239493039 span.yiv4239493039emailstyle171 {}#yiv4239493039 span.yiv4239493039emailstyle25 {}#yiv4239493039 p.yiv4239493039msonormal2, #yiv4239493039 li.yiv4239493039msonormal2, #yiv4239493039 div.yiv4239493039msonormal2 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv4239493039 span.yiv4239493039msohyperlink2 {color:blue;text-decoration:underline;}#yiv4239493039 span.yiv4239493039msohyperlinkfollowed2 {color:purple;text-decoration:underline;}#yiv4239493039 p.yiv4239493039msonormal3, #yiv4239493039 li.yiv4239493039msonormal3, #yiv4239493039 div.yiv4239493039msonormal3 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv4239493039 p.yiv4239493039msonormal11, #yiv4239493039 li.yiv4239493039msonormal11, #yiv4239493039 div.yiv4239493039msonormal11 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv4239493039 span.yiv4239493039msohyperlink11 {color:blue;text-decoration:underline;}#yiv4239493039 span.yiv4239493039msohyperlinkfollowed11 {color:purple;text-decoration:underline;}#yiv4239493039 span.yiv4239493039emailstyle1711 {color:windowtext;}#yiv4239493039 span.yiv4239493039emailstyle251 {color:#1F497D;}#yiv4239493039 p.yiv4239493039msochpdefault1, #yiv4239493039 li.yiv4239493039msochpdefault1, #yiv4239493039 div.yiv4239493039msochpdefault1 {margin-right:0in;margin-left:0in;font-size:10.0pt;}#yiv4239493039 span.yiv4239493039BalloonTextChar {}#yiv4239493039 span.yiv4239493039EmailStyle38 {color:#1F497D;}#yiv4239493039 .yiv4239493039MsoChpDefault {font-size:10.0pt;} _filtered #yiv4239493039 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv4239493039 div.yiv4239493039WordSection1 {}#yiv4239493039 Thank you for the reply… I’m looking forward to hearing more. |
From: Parham, C. <cp...@bi...> - 2015-07-10 19:24:06
|
Thank you for the reply… I’m looking forward to hearing more. From: Ahmed Ashour [mailto:asa...@ya...] Sent: Friday, July 10, 2015 9:26 AM To: htm...@li... Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined Hi Clinton, FormData is not implemented, stay tuned. Ahmed ________________________________ From: "Parham, Clinton" <cp...@bi...<mailto:cp...@bi...>> To: Ahmed Ashour <asa...@ya...<mailto:asa...@ya...>>; "htm...@li...<mailto:htm...@li...>" <htm...@li...<mailto:htm...@li...>> Sent: Thursday, July 9, 2015 5:41 PM Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined Hi Ahmed, When setting to Chrome that particular error is solved. This successfully sets the file to be uploaded into the file input component. The next step is to fire the upload by clicking the “Upload” button, which fails: ScriptException: TypeError: Cannot find function append in object [object FormData] Here’s my test method: public class HTMLUnitTestCase { final WebClient webClient = new WebClient(BrowserVersion.CHROME); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); // choose file to upload HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput .setValueAttribute("/tmp/KYN_TopLeft.PNG"); // click Upload button HtmlElement element = (HtmlElement) page.getByXPath( "//*[@id='j_idt1904:upload']/div[1]/span[1]/span[2]/span").get( 0); element.click(); } } Am I doing this right? Thank you, Clint ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-07-10 13:29:21
|
Hi Clinton, FormData is not implemented, stay tuned. Ahmed From: "Parham, Clinton" <cp...@bi...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Thursday, July 9, 2015 5:41 PM Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined #yiv6805653247 #yiv6805653247 -- _filtered #yiv6805653247 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv6805653247 #yiv6805653247 p.yiv6805653247MsoNormal, #yiv6805653247 li.yiv6805653247MsoNormal, #yiv6805653247 div.yiv6805653247MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6805653247 a:link, #yiv6805653247 span.yiv6805653247MsoHyperlink {color:blue;text-decoration:underline;}#yiv6805653247 a:visited, #yiv6805653247 span.yiv6805653247MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv6805653247 p.yiv6805653247msonormal, #yiv6805653247 li.yiv6805653247msonormal, #yiv6805653247 div.yiv6805653247msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv6805653247 span.yiv6805653247msohyperlink {}#yiv6805653247 span.yiv6805653247msohyperlinkfollowed {}#yiv6805653247 span.yiv6805653247emailstyle17 {}#yiv6805653247 p.yiv6805653247msonormal1, #yiv6805653247 li.yiv6805653247msonormal1, #yiv6805653247 div.yiv6805653247msonormal1 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv6805653247 span.yiv6805653247msohyperlink1 {color:blue;text-decoration:underline;}#yiv6805653247 span.yiv6805653247msohyperlinkfollowed1 {color:purple;text-decoration:underline;}#yiv6805653247 span.yiv6805653247emailstyle171 {color:windowtext;}#yiv6805653247 span.yiv6805653247EmailStyle25 {color:#1F497D;}#yiv6805653247 .yiv6805653247MsoChpDefault {font-size:10.0pt;} _filtered #yiv6805653247 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6805653247 div.yiv6805653247WordSection1 {}#yiv6805653247 Hi Ahmed, When setting to Chrome that particular error is solved. This successfully sets the file to be uploaded into the file input component. The next step is to fire the upload by clicking the “Upload” button, which fails: ScriptException: TypeError: Cannot find function append in object [object FormData] Here’s my test method: public class HTMLUnitTestCase { final WebClient webClient = new WebClient(BrowserVersion.CHROME); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); // choose file to upload HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput .setValueAttribute("/tmp/KYN_TopLeft.PNG"); // click Upload button HtmlElement element = (HtmlElement) page.getByXPath( "//*[@id='j_idt1904:upload']/div[1]/span[1]/span[2]/span").get( 0); element.click(); } } Am I doing this right? Thank you, Clint |
From: Parham, C. <cp...@bi...> - 2015-07-09 15:41:55
|
Hi Ahmed, When setting to Chrome that particular error is solved. This successfully sets the file to be uploaded into the file input component. The next step is to fire the upload by clicking the “Upload” button, which fails: ScriptException: TypeError: Cannot find function append in object [object FormData] Here’s my test method: public class HTMLUnitTestCase { final WebClient webClient = new WebClient(BrowserVersion.CHROME); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); // choose file to upload HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput .setValueAttribute("/tmp/KYN_TopLeft.PNG"); // click Upload button HtmlElement element = (HtmlElement) page.getByXPath( "//*[@id='j_idt1904:upload']/div[1]/span[1]/span[2]/span").get( 0); element.click(); } } Am I doing this right? Thank you, Clint ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-07-08 21:54:45
|
Hi, Have you tried with new WebClient(BrowserVersion.CHROME)? It works for me. Please carefully read below. Ahmed From: Ahmed Ashour <asa...@ya...> To: "htm...@li..." <htm...@li...> Sent: Sunday, July 5, 2015 8:23 AM Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined Hi, I tried with BrowserVersion.CHROME, since I don't have IE8. input.files was not implemented, now it is fixed in SVN. Once we have new successful build, you can use it. Please note it is supported in only BrowserVersion.CHROME/FF/IE11 If you still need IE8, then please trace down the single JavaScript line which returned null (but not in real IE8). You can use proxy (e.g. Charles) to change the incoming JavaScript and compare the results between HtmlUnit and real IE8. Ahmed From: "Parham, Clinton" <cp...@bi...> To: "htm...@li..." <htm...@li...> Sent: Friday, July 3, 2015 3:24 PM Subject: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined #yiv0266802668 #yiv0266802668 -- filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv0266802668 p.yiv0266802668MsoNormal, #yiv0266802668 li.yiv0266802668MsoNormal, #yiv0266802668 div.yiv0266802668MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv0266802668 a:link, #yiv0266802668 span.yiv0266802668MsoHyperlink {color:blue;text-decoration:underline;}#yiv0266802668 a:visited, #yiv0266802668 span.yiv0266802668MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv0266802668 span.yiv0266802668EmailStyle17 {color:windowtext;}#yiv0266802668 .yiv0266802668MsoChpDefault {}#yiv0266802668 filtered {margin:1.0in 1.0in 1.0in 1.0in;}#yiv0266802668 div.yiv0266802668WordSection1 {}#yiv0266802668 Hello HTMLUnit users, I’ve been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I’ve tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } | The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. | ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Parham, C. <cp...@bi...> - 2015-07-08 19:35:59
|
Hi Ahmed, I pulled down the snapshot but the behavior has not changed. I’m still getting the same error. I opened the project snapshot JAR and confirmed it is today’s build: #Wed Jul 08 19:41:48 CEST 2015 Any idea why it’s not working? Thanks. ======= EXCEPTION START ======== Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "match" of undefined (http://showcase.richfaces.org/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.5.7.Final/PackedCompressed/packed/packed.js;jsessionid=0Qn0nClT48OK5secsCIrJYSZ#2639) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:864) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:795) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:767) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1025) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:198) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:261) at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:190) at com.gargoylesoftware.htmlunit.html.DomElement$2.run(DomElement.java:1159) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1164) at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1132) at com.gargoylesoftware.htmlunit.html.HtmlInput.executeOnChangeHandlerIfAppropriate(HtmlInput.java:511) at com.gargoylesoftware.htmlunit.html.HtmlInput.setValueAttribute(HtmlInput.java:98) at myTests.HTMLUnitTestCase.testRichFacesFileUpload(HTMLUnitTestCase.java:19) … at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: TypeError: Cannot call method "match" of undefined (http://showcase.richfaces.org/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.5.7.Final/PackedCompressed/packed/packed.js;jsessionid=0Qn0nClT48OK5secsCIrJYSZ#2639) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1006) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:310) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3286) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:788) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:849) ... 39 more JavaScriptException value = TypeError: Cannot call method "match" of undefined == CALLING JAVASCRIPT == function (e) { return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply(eventHandle.elem, arguments) : undefined; } ======= EXCEPTION END ======== ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-07-08 17:57:57
|
Hi Clinton, Uploading to maven repository is done manually every two weeks. It was just deployed. Also, you can download latest build from https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts (login as guest) Thanks,Ahmed From: "Parham, Clinton" <cp...@bi...> To: "htm...@li..." <htm...@li...> Sent: Wednesday, July 8, 2015 4:50 PM Subject: Re: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined <!--#yiv6398929215 _filtered #yiv6398929215 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv6398929215 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv6398929215 #yiv6398929215 p.yiv6398929215MsoNormal, #yiv6398929215 li.yiv6398929215MsoNormal, #yiv6398929215 div.yiv6398929215MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}#yiv6398929215 a:link, #yiv6398929215 span.yiv6398929215MsoHyperlink {color:blue;text-decoration:underline;}#yiv6398929215 a:visited, #yiv6398929215 span.yiv6398929215MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv6398929215 span.yiv6398929215EmailStyle17 {font-family:"Calibri", "sans-serif";color:windowtext;}#yiv6398929215 span.yiv6398929215EmailStyle18 {font-family:"Calibri", "sans-serif";color:#1F497D;}#yiv6398929215 .yiv6398929215MsoChpDefault {font-size:10.0pt;} _filtered #yiv6398929215 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6398929215 div.yiv6398929215WordSection1 {}-->Ahmed, Do you know how often Maven snapshot builds are posted? We would like to verify your change but the last build is still from June: https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/htmlunit/htmlunit/2.18-SNAPSHOT/ Thanks. From: Parham, Clinton Sent: Friday, July 03, 2015 9:25 AM To: 'htm...@li...' Subject: RichFaces fileUpload: Cannot call method "match" of undefined Hello HTMLUnit users, I’ve been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I’ve tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } | The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. | ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Parham, C. <cp...@bi...> - 2015-07-08 14:50:33
|
Ahmed, Do you know how often Maven snapshot builds are posted? We would like to verify your change but the last build is still from June: https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/htmlunit/htmlunit/2.18-SNAPSHOT/ Thanks. From: Parham, Clinton Sent: Friday, July 03, 2015 9:25 AM To: 'htm...@li...' Subject: RichFaces fileUpload: Cannot call method "match" of undefined Hello HTMLUnit users, I've been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I've tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Parham, C. <cp...@bi...> - 2015-07-07 17:46:29
|
Hello Ahmed, Thank you for your reply and fix. Will give it a try as soon as possible. Clint From: Parham, Clinton Sent: Friday, July 03, 2015 9:25 AM To: 'htm...@li...' Subject: RichFaces fileUpload: Cannot call method "match" of undefined Hello HTMLUnit users, I've been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I've tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-07-05 06:26:52
|
Hi, I tried with BrowserVersion.CHROME, since I don't have IE8. input.files was not implemented, now it is fixed in SVN. Once we have new successful build, you can use it. Please note it is supported in only BrowserVersion.CHROME/FF/IE11 If you still need IE8, then please trace down the single JavaScript line which returned null (but not in real IE8). You can use proxy (e.g. Charles) to change the incoming JavaScript and compare the results between HtmlUnit and real IE8. Ahmed From: "Parham, Clinton" <cp...@bi...> To: "htm...@li..." <htm...@li...> Sent: Friday, July 3, 2015 3:24 PM Subject: [Htmlunit-user] RichFaces fileUpload: Cannot call method "match" of undefined <!--#yiv9648094149 _filtered #yiv9648094149 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv9648094149 #yiv9648094149 p.yiv9648094149MsoNormal, #yiv9648094149 li.yiv9648094149MsoNormal, #yiv9648094149 div.yiv9648094149MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}#yiv9648094149 a:link, #yiv9648094149 span.yiv9648094149MsoHyperlink {color:blue;text-decoration:underline;}#yiv9648094149 a:visited, #yiv9648094149 span.yiv9648094149MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9648094149 span.yiv9648094149EmailStyle17 {font-family:"Calibri", "sans-serif";color:windowtext;}#yiv9648094149 .yiv9648094149MsoChpDefault {font-family:"Calibri", "sans-serif";} _filtered #yiv9648094149 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv9648094149 div.yiv9648094149WordSection1 {}-->Hello HTMLUnit users, I’ve been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I’ve tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } | The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. | ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Parham, C. <cp...@bi...> - 2015-07-03 13:40:05
|
Hello HTMLUnit users, I've been using HTMLUnit for a while with the RichFaces fileUpload component. But after a recent RichFaces update (from 4.3.7 to 4.5.7), my test no longer works: TypeError: Cannot call method "match" of undefined I've tried updating to HTMLUnit 2.17 and still get the error. A testcase to reproduce is included below. How can I get this working again? Thanks, Clint package myTests; import org.junit.Test; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlInput; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HTMLUnitTestCase { final WebClient webClient = new WebClient(); @Test public void testRichFacesFileUpload() throws Exception { final HtmlPage page = webClient .getPage("http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload&skin=blueSky"); HtmlInput htmlInput = (HtmlInput) page.getByXPath( "//input[@type='file']").get(0); htmlInput.setValueAttribute("/tmp/KYN_TopLeft.PNG"); } } ________________________________ The contents contained herein may contain confidential information. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or action taken on the contents is strictly prohibited. If you have received this email in error, please notify the sender immediately and delete this message. |
From: Ahmed A. <asa...@ya...> - 2015-06-30 09:46:16
|
Hi, Please: - Use latest maven.- Remove all your local repository files (~\.m2\repository)- Remove/rename your ~\.m2\settings.xml Hope that helps,Ahmed From: Standlove <sta...@16...> To: htm...@li... Sent: Tuesday, June 30, 2015 11:30 AM Subject: [Htmlunit-user] Error occurs when compile the htmlunit 2.17 source code I got the following error when try to run 'mvn package' against the 2.17 source code. Can you let me know how to resolve it ? Thanks. [DEBUG] =======================================================================[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 0.909 s[INFO] Finished at: 2015-06-30T17:25:22+08:00[INFO] Final Memory: 11M/244M[INFO] ------------------------------------------------------------------------[ERROR] 24578java.lang.ArrayIndexOutOfBoundsException: 24578 at org.codehaus.plexus.util.xml.pull.MXParser.parsePI(MXParser.java:2502) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1283) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131) at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1116) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseReportSet(MavenXpp3Reader.java:3337) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseReportPlugin(MavenXpp3Reader.java:3274) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseReporting(MavenXpp3Reader.java:3412) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2247) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3807) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557) at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:125) at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:94) at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultModelProcessor.java:81) at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:529) at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1023) at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:796) at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:325) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:340) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:218) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)[ERROR] |
From: Standlove <sta...@16...> - 2015-06-30 09:30:51
|
I got the following error when try to run 'mvn package' against the 2.17 source code. Can you let me know how to resolve it ? Thanks. [DEBUG] ======================================================================= [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.909 s [INFO] Finished at: 2015-06-30T17:25:22+08:00 [INFO] Final Memory: 11M/244M [INFO] ------------------------------------------------------------------------ [ERROR] 24578 java.lang.ArrayIndexOutOfBoundsException: 24578 at org.codehaus.plexus.util.xml.pull.MXParser.parsePI(MXParser.java:2502) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1283) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131) at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1116) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseReportSet(MavenXpp3Reader.java:3337) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseReportPlugin(MavenXpp3Reader.java:3274) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseReporting(MavenXpp3Reader.java:3412) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2247) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3807) at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557) at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:125) at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:94) at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultModelProcessor.java:81) at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:529) at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1023) at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:796) at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:325) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:340) at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:218) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse(DefaultDependencyCollector.java:504) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351) at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [ERROR] |
From: Ahmed A. <asa...@ya...> - 2015-06-25 21:10:08
|
Hi Vasu, That's great. You can use HtmlImage.saveAs() or .getImageReader() Ahmed From: Vasudevan Comandur <vco...@gm...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Thursday, June 25, 2015 6:54 PM Subject: Re: [Htmlunit-user] HTMLUnit does not seem to execute the Javascript HI Ahmed, Upon further analysis, it was determined that JS was executing the src in img tag. The javascript was executing an <img> tag. Since HTMLUnit does not download the image tag, the URL was not getting executed. How do I make the webclient execute the img tag?. Is there any option to be enabled in Webclient? Looking forward to your reply Regards Vasu Kindly let me know how to enable that? On 25 June 2015 at 02:01, Ahmed Ashour <asa...@ya...> wrote: Hi Vasu, You need to debug the JavaScript for captch, which is long and is minified. The first step is to have the all the files locally into a web server. Then you can 'beautify' the JavaScript with any online tool. Then you add alert() in various places, and see which was triggered by real browser, and which isn't by HtmlUnit. Hope that helps,Ahmed From: Vasudevan Comandur <vco...@gm...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Wednesday, June 24, 2015 8:08 PM Subject: Re: [Htmlunit-user] HTMLUnit does not seem to execute the Javascript Hi Ahmed, I was tracing the execution of HTMLUnit version 2.15 as part of the Google Recaptcha Widget download which happens through JS and image display using the demo URL http://www.patcurtis.com/captcha/recaptcha_demo.php site. I added few print statements in HtmlScript.java file inside executeScriptIfNeeded and setAttributeNS methods. I did not see any download of image files which are there as part of the widget since HTMLUnit does not download the image files by default. SetAttributeNS method treats the below URL generated as part JS execution as type=text/javascript. src = http://www.google.com/recaptcha/api/reload?c=03AHJ_VuvmwTN2LxSz8J7dtNZX81A l0QFvt2JyKcpqXcCP6Ebhbs1iwjCwTj3mxGkjAoc-nv-JljJtbSblYrhKA3zK9lhsC4GWpyGJvVWuJ-dT7N28xReMFBWpNG5qmRAQkTdAUIiUPESqA56HaP4QvIp7pLj5q7R dI-GsTBZNl4wTbb0CE4nS4H2QNkXJk69K22y7XGoZoplGnVqZo3-eCceM0vNuNZC4ag&k=6Lf1-AQAAAAAAL9EskceOVja5Uh5_yo1FRtb1Q83&reason=i&type=image&l ang=en-GB&th=,coOwiE56XYH9N2a2lyztIOsFl5bwAAACoKAAAABu2AC0rMWOid-5CTrmKC6e3ami38LUaxj93ocIgqGTY9RGp7USlJXefyMwL0PSDWZB8F-jfGsT3SYmtI -bcmXTBjwgs6KUmyzE_KPa_Oy4p6XOmGR1rCGzxC1_qTKf960khqvhaYs3YR2X2RIFC1fWREKGDa2UFrJXeUcK0B8ZmaPuCM4ApSWV7FEHSlbM4u3AkfT5JlCPADOI_jtV2Z GozH4Z-bSuwjQG048s9Z7di_Jq03cvf7lP The response data is given below which was captured inside loadJavascriptfromURL Inside loadJavaScriptFromUrl Method in HTMLPage.java file...Recaptcha.finish_reload('03AHJ_VuvsYkou1euMxszLTJzD0IQCRKynnIGDBJckG-APe XiFr8ncPLZK7kS1rhIY_YT4triXHvkIlMwSDtTYsYw32_ntpqnarqJS_JAS0CICMFwB6AIy-pN3rNZRsDn2CJUSvUfscaW6WDAw1SlAzyV82rMSgvf6ijr_8y_MTWR6qA7N0 iHYTVsHATqbPVIkiUzMppmamHuHp5YL-UvmupP9Hzk92P55Ww', 'image', null, null); Finish_reload is a method which is inside recaptcha.js file which was download in the beginning that takes four arguments. I saw the executeEventIfBrowserHasFeature method was called with EVENT_ONLOAD_EXTERNAL_JAVASCRIPT params. But the finish_reload method was NOT getting executed. It would be great if someone helps me to figure out the reason. Looking forward to a reply. Regards Vasu ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Vasudevan C. <vco...@gm...> - 2015-06-25 16:54:57
|
HI Ahmed, Upon further analysis, it was determined that JS was executing the src in img tag. The javascript was executing an <img> tag. Since HTMLUnit does not download the image tag, the URL was not getting executed. How do I make the webclient execute the img tag?. Is there any option to be enabled in Webclient? Looking forward to your reply Regards Vasu Kindly let me know how to enable that? On 25 June 2015 at 02:01, Ahmed Ashour <asa...@ya...> wrote: > Hi Vasu, > > You need to debug the JavaScript for captch, which is long and is minified. > > The first step is to have the all the files locally into a web server. > > Then you can 'beautify' the JavaScript with any online tool. > > Then you add alert() in various places, and see which was triggered by > real browser, and which isn't by HtmlUnit. > > Hope that helps, > Ahmed > ------------------------------ > *From:* Vasudevan Comandur <vco...@gm...> > *To:* Ahmed Ashour <asa...@ya...>; " > htm...@li..." <htm...@li...> > > *Sent:* Wednesday, June 24, 2015 8:08 PM > *Subject:* Re: [Htmlunit-user] HTMLUnit does not seem to execute the > Javascript > > Hi Ahmed, > > I was tracing the execution of HTMLUnit version 2.15 as part of the > Google Recaptcha Widget download which happens > through JS and image display using the demo URL > http://www.patcurtis.com/captcha/recaptcha_demo.php site. > > > > I added few print statements in HtmlScript.java file inside > executeScriptIfNeeded and setAttributeNS methods. > I did not see any download of image files which are there as part of > the widget since HTMLUnit does not download > the image files by default. > > SetAttributeNS method treats the below URL generated as part JS > execution as type=text/javascript. > > src = > http://www.google.com/recaptcha/api/reload?c=03AHJ_VuvmwTN2LxSz8J7dtNZX81A > > l0QFvt2JyKcpqXcCP6Ebhbs1iwjCwTj3mxGkjAoc-nv-JljJtbSblYrhKA3zK9lhsC4GWpyGJvVWuJ-dT7N28xReMFBWpNG5qmRAQkTdAUIiUPESqA56HaP4QvIp7pLj5q7R > > dI-GsTBZNl4wTbb0CE4nS4H2QNkXJk69K22y7XGoZoplGnVqZo3-eCceM0vNuNZC4ag&k=6Lf1-AQAAAAAAL9EskceOVja5Uh5_yo1FRtb1Q83&reason=i&type=image&l > > ang=en-GB&th=,coOwiE56XYH9N2a2lyztIOsFl5bwAAACoKAAAABu2AC0rMWOid-5CTrmKC6e3ami38LUaxj93ocIgqGTY9RGp7USlJXefyMwL0PSDWZB8F-jfGsT3SYmtI > > -bcmXTBjwgs6KUmyzE_KPa_Oy4p6XOmGR1rCGzxC1_qTKf960khqvhaYs3YR2X2RIFC1fWREKGDa2UFrJXeUcK0B8ZmaPuCM4ApSWV7FEHSlbM4u3AkfT5JlCPADOI_jtV2Z > GozH4Z-bSuwjQG048s9Z7di_Jq03cvf7lP > > The response data is given below which was captured inside > loadJavascriptfromURL > > Inside loadJavaScriptFromUrl Method in HTMLPage.java > file...Recaptcha.finish_reload('03AHJ_VuvsYkou1euMxszLTJzD0IQCRKynnIGDBJckG-APe > > XiFr8ncPLZK7kS1rhIY_YT4triXHvkIlMwSDtTYsYw32_ntpqnarqJS_JAS0CICMFwB6AIy-pN3rNZRsDn2CJUSvUfscaW6WDAw1SlAzyV82rMSgvf6ijr_8y_MTWR6qA7N0 > iHYTVsHATqbPVIkiUzMppmamHuHp5YL-UvmupP9Hzk92P55Ww', 'image', null, null); > > Finish_reload is a method which is inside recaptcha.js file which was > download in the beginning that takes four > arguments. > > I saw the executeEventIfBrowserHasFeature method was called with > EVENT_ONLOAD_EXTERNAL_JAVASCRIPT params. > > But the finish_reload method was NOT getting executed. > > It would be great if someone helps me to figure out the reason. > > Looking forward to a reply. > > > > > Regards > Vasu > > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Vasudevan C. <vco...@gm...> - 2015-06-25 10:37:36
|
Hi Ahmed, Thanks for your reply. I setup an Apache webserver and followed the sequence of JS files to be sent to HTMLUnit. I added few alert statements inside the function. I have copied that below for your reference: finish_reload: function(a, b, c, d) { alert("Inside Reload......") ; RecaptchaState.payload_url = c; RecaptchaState.is_incorrect = !1; RecaptchaState.publisher_id = d; Z._set_challenge(a, b, !1); alert("Executed Set_challenge..."); Z.updateTabIndexes_() }, The REal browser was displaying both the alert statements. However, I did not see the alert statement being displayed in my browser nor in the console of the application. I was triggering the HTMLUnit app using another browser. I saw through charles as well as print statements in HTMLUnit that data exchange is fine. KIndly let me know how to trace further. If you need any additional data, I can share the same. Looking forward to your reply. Regards Vasu On 25 June 2015 at 02:01, Ahmed Ashour <asa...@ya...> wrote: > Hi Vasu, > > You need to debug the JavaScript for captch, which is long and is minified. > > The first step is to have the all the files locally into a web server. > > Then you can 'beautify' the JavaScript with any online tool. > > Then you add alert() in various places, and see which was triggered by > real browser, and which isn't by HtmlUnit. > > Hope that helps, > Ahmed > ------------------------------ > > |
From: Ahmed A. <asa...@ya...> - 2015-06-24 20:35:24
|
Hi Vasu, You can get the URLs and content of all traffic, by something like: http://htmlunit.sourceforge.net/faq.html#HowToModifyRequestOrResponse Ahmed From: Vasudevan Comandur <vco...@gm...> To: "htm...@li..." <htm...@li...> Sent: Wednesday, June 24, 2015 8:57 PM Subject: [Htmlunit-user] How do I get the last request URL that was sent out as part of JS execution Hi All, I was trying to get the last request URL that was sent out through a WebClient during the exection of JS. I slept for a minute before calling the below mentioned code: WebClient().getCurrentWindow().getEnclosedPage().getWebResponse().getWebRequest().getURL().toString() I was getting the initial request only. Regards Vasu ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-06-24 20:34:35
|
Hi Vasu, You need to debug the JavaScript for captch, which is long and is minified. The first step is to have the all the files locally into a web server. Then you can 'beautify' the JavaScript with any online tool. Then you add alert() in various places, and see which was triggered by real browser, and which isn't by HtmlUnit. Hope that helps,Ahmed From: Vasudevan Comandur <vco...@gm...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Wednesday, June 24, 2015 8:08 PM Subject: Re: [Htmlunit-user] HTMLUnit does not seem to execute the Javascript Hi Ahmed, I was tracing the execution of HTMLUnit version 2.15 as part of the Google Recaptcha Widget download which happens through JS and image display using the demo URL http://www.patcurtis.com/captcha/recaptcha_demo.php site. I added few print statements in HtmlScript.java file inside executeScriptIfNeeded and setAttributeNS methods. I did not see any download of image files which are there as part of the widget since HTMLUnit does not download the image files by default. SetAttributeNS method treats the below URL generated as part JS execution as type=text/javascript. src = http://www.google.com/recaptcha/api/reload?c=03AHJ_VuvmwTN2LxSz8J7dtNZX81A l0QFvt2JyKcpqXcCP6Ebhbs1iwjCwTj3mxGkjAoc-nv-JljJtbSblYrhKA3zK9lhsC4GWpyGJvVWuJ-dT7N28xReMFBWpNG5qmRAQkTdAUIiUPESqA56HaP4QvIp7pLj5q7R dI-GsTBZNl4wTbb0CE4nS4H2QNkXJk69K22y7XGoZoplGnVqZo3-eCceM0vNuNZC4ag&k=6Lf1-AQAAAAAAL9EskceOVja5Uh5_yo1FRtb1Q83&reason=i&type=image&l ang=en-GB&th=,coOwiE56XYH9N2a2lyztIOsFl5bwAAACoKAAAABu2AC0rMWOid-5CTrmKC6e3ami38LUaxj93ocIgqGTY9RGp7USlJXefyMwL0PSDWZB8F-jfGsT3SYmtI -bcmXTBjwgs6KUmyzE_KPa_Oy4p6XOmGR1rCGzxC1_qTKf960khqvhaYs3YR2X2RIFC1fWREKGDa2UFrJXeUcK0B8ZmaPuCM4ApSWV7FEHSlbM4u3AkfT5JlCPADOI_jtV2Z GozH4Z-bSuwjQG048s9Z7di_Jq03cvf7lP The response data is given below which was captured inside loadJavascriptfromURL Inside loadJavaScriptFromUrl Method in HTMLPage.java file...Recaptcha.finish_reload('03AHJ_VuvsYkou1euMxszLTJzD0IQCRKynnIGDBJckG-APe XiFr8ncPLZK7kS1rhIY_YT4triXHvkIlMwSDtTYsYw32_ntpqnarqJS_JAS0CICMFwB6AIy-pN3rNZRsDn2CJUSvUfscaW6WDAw1SlAzyV82rMSgvf6ijr_8y_MTWR6qA7N0 iHYTVsHATqbPVIkiUzMppmamHuHp5YL-UvmupP9Hzk92P55Ww', 'image', null, null); Finish_reload is a method which is inside recaptcha.js file which was download in the beginning that takes four arguments. I saw the executeEventIfBrowserHasFeature method was called with EVENT_ONLOAD_EXTERNAL_JAVASCRIPT params. But the finish_reload method was NOT getting executed. It would be great if someone helps me to figure out the reason. Looking forward to a reply. Regards Vasu ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Vasudevan C. <vco...@gm...> - 2015-06-24 18:57:41
|
Hi All, I was trying to get the last request URL that was sent out through a WebClient during the exection of JS. I slept for a minute before calling the below mentioned code: WebClient().getCurrentWindow().getEnclosedPage().getWebResponse().getWebRequest().getURL().toString() I was getting the initial request only. Regards Vasu |
From: Vasudevan C. <vco...@gm...> - 2015-06-24 18:08:58
|
Hi Ahmed, I was tracing the execution of HTMLUnit version 2.15 as part of the Google Recaptcha Widget download which happens through JS and image display using the demo URL http://www.patcurtis.com/captcha/recaptcha_demo.php site. I added few print statements in HtmlScript.java file inside executeScriptIfNeeded and setAttributeNS methods. I did not see any download of image files which are there as part of the widget since HTMLUnit does not download the image files by default. SetAttributeNS method treats the below URL generated as part JS execution as type=text/javascript. src = http://www.google.com/recaptcha/api/reload?c=03AHJ_VuvmwTN2LxSz8J7dtNZX81A l0QFvt2JyKcpqXcCP6Ebhbs1iwjCwTj3mxGkjAoc-nv-JljJtbSblYrhKA3zK9lhsC4GWpyGJvVWuJ-dT7N28xReMFBWpNG5qmRAQkTdAUIiUPESqA56HaP4QvIp7pLj5q7R dI-GsTBZNl4wTbb0CE4nS4H2QNkXJk69K22y7XGoZoplGnVqZo3-eCceM0vNuNZC4ag&k=6Lf1-AQAAAAAAL9EskceOVja5Uh5_yo1FRtb1Q83&reason=i&type=image&l ang=en-GB&th=,coOwiE56XYH9N2a2lyztIOsFl5bwAAACoKAAAABu2AC0rMWOid-5CTrmKC6e3ami38LUaxj93ocIgqGTY9RGp7USlJXefyMwL0PSDWZB8F-jfGsT3SYmtI -bcmXTBjwgs6KUmyzE_KPa_Oy4p6XOmGR1rCGzxC1_qTKf960khqvhaYs3YR2X2RIFC1fWREKGDa2UFrJXeUcK0B8ZmaPuCM4ApSWV7FEHSlbM4u3AkfT5JlCPADOI_jtV2Z GozH4Z-bSuwjQG048s9Z7di_Jq03cvf7lP The response data is given below which was captured inside loadJavascriptfromURL Inside loadJavaScriptFromUrl Method in HTMLPage.java file...Recaptcha.finish_reload('03AHJ_VuvsYkou1euMxszLTJzD0IQCRKynnIGDBJckG-APe XiFr8ncPLZK7kS1rhIY_YT4triXHvkIlMwSDtTYsYw32_ntpqnarqJS_JAS0CICMFwB6AIy-pN3rNZRsDn2CJUSvUfscaW6WDAw1SlAzyV82rMSgvf6ijr_8y_MTWR6qA7N0 iHYTVsHATqbPVIkiUzMppmamHuHp5YL-UvmupP9Hzk92P55Ww', 'image', null, null); Finish_reload is a method which is inside recaptcha.js file which was download in the beginning that takes four arguments. I saw the executeEventIfBrowserHasFeature method was called with EVENT_ONLOAD_EXTERNAL_JAVASCRIPT params. But the finish_reload method was NOT getting executed. It would be great if someone helps me to figure out the reason. Looking forward to a reply. Regards Vasu |
From: David B. <dav...@gm...> - 2015-06-23 21:48:19
|
I used the default browser version, specifying the latest Firefox it works now. Thanks! David On 23 June 2015 at 11:27, Marc Guillemot <mgu...@ya...> wrote: > Hi David, > > which version of HtmlUnit do you use and which browser do you simulate? > ArrayBuffer is supported since HtmlUnit 2.11. > > Cheers, > Marc. > -- > HtmlUnit support & consulting from the source > Blog: http://mguillem.wordpress.com > > Le 19/06/2015 16:34, David Bosschaert a écrit : >> Hi all, >> >> I'm using HTMLUnit 2.17 and would like to create an ArrayBuffer [1]. >> >> So I put the following code in my JavaScript which will be fed into HtmlUnit: >> var x = new ArrayBuffer(123); >> >> However, that fails [2]. If I understand it correctly HTMLUnit should >> support this, so I'm probably doing something wrong. Anyone an idea? >> In general HTMLUnit is working fine for me BTW... >> >> Thanks, >> >> David >> >> [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer >> >> [2] ======= EXCEPTION START ======== >> EcmaError: lineNumber=[1] column=[0] lineSource=[function () {] >> name=[ReferenceError] sourceName=[script in >> file:/var/folders/fk/0n8fx3k91ls8lh981zzmm2lh0000gn/T/jstest-4817061347950459619.tmp >> from (1, 176) to (1, 1752)] message=[ReferenceError: "ArrayBuffer" is >> not defined. (script in >> file:/var/folders/fk/0n8fx3k91ls8lh981zzmm2lh0000gn/T/jstest-4817061347950459619.tmp >> from (1, 176) to (1, 1752)#1)] >> com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: >> "ArrayBuffer" is not defined. (script in >> file:/var/folders/fk/0n8fx3k91ls8lh981zzmm2lh0000gn/T/jstest-4817061347950459619.tmp >> from (1, 176) to (1, 1752)#1) >> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:847) >> at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) >> at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) >> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:779) >> at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:751) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1008) >> at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventHandler(EventListenersContainer.java:234) >> at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:254) >> at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:186) >> at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:923) >> at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) >> at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513) >> at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:928) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1316) >> at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:286) >> at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:478) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:345) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:410) >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Htmlunit-user mailing list >> Htm...@li... >> https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-06-23 14:19:50
|
Hi Vasu, I tested with Chrome, Htmlunit gets the page, and tried to execute the JavaScript, but nothing happens. Please try to isolate the root cause as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Vasudevan Comandur <vco...@gm...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Tuesday, June 23, 2015 4:10 PM Subject: Re: [Htmlunit-user] HTMLUnit does not seem to execute the Javascript Hi Ahmed, Did the response data help you to isolate why HTMLUnit was not executing the Recaptcha.finish_reload method? I observed one more thing. The "th" value in reload was different BROWSERVERSION settings. Looks like you have set the useragent to IE. Another thing which I noticed is that HTMLUnit generates "th" string length to 286 bytes but real IE browser is setting the length to 308. Let me know if you need any additional information. Thanks for your help in advance Regards Vasu |