You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(10) |
Aug
(30) |
Sep
(15) |
Oct
(26) |
Nov
(12) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(27) |
Mar
(73) |
Apr
(17) |
May
(17) |
Jun
(78) |
Jul
(67) |
Aug
(60) |
Sep
(89) |
Oct
(140) |
Nov
(173) |
Dec
(46) |
2004 |
Jan
(39) |
Feb
(7) |
Mar
(21) |
Apr
(31) |
May
(13) |
Jun
(86) |
Jul
(14) |
Aug
(14) |
Sep
(53) |
Oct
(184) |
Nov
(186) |
Dec
(319) |
2005 |
Jan
(336) |
Feb
(274) |
Mar
(226) |
Apr
(102) |
May
(196) |
Jun
(130) |
Jul
(119) |
Aug
(143) |
Sep
(76) |
Oct
(85) |
Nov
(70) |
Dec
(159) |
2006 |
Jan
(125) |
Feb
(100) |
Mar
(80) |
Apr
(39) |
May
(55) |
Jun
(58) |
Jul
(50) |
Aug
(76) |
Sep
(55) |
Oct
(101) |
Nov
(163) |
Dec
(85) |
2007 |
Jan
(56) |
Feb
(53) |
Mar
(180) |
Apr
(221) |
May
(290) |
Jun
(199) |
Jul
(322) |
Aug
(515) |
Sep
(121) |
Oct
(297) |
Nov
(177) |
Dec
(103) |
2008 |
Jan
(516) |
Feb
(315) |
Mar
(586) |
Apr
(615) |
May
(197) |
Jun
(381) |
Jul
(390) |
Aug
(195) |
Sep
(603) |
Oct
(499) |
Nov
(622) |
Dec
(350) |
2009 |
Jan
(313) |
Feb
(338) |
Mar
(507) |
Apr
(317) |
May
(197) |
Jun
(375) |
Jul
(235) |
Aug
(424) |
Sep
(410) |
Oct
(338) |
Nov
(286) |
Dec
(306) |
2010 |
Jan
(367) |
Feb
(339) |
Mar
(371) |
Apr
(172) |
May
(233) |
Jun
(264) |
Jul
(421) |
Aug
(110) |
Sep
(218) |
Oct
(189) |
Nov
(185) |
Dec
(168) |
2011 |
Jan
(145) |
Feb
(213) |
Mar
(205) |
Apr
(64) |
May
(159) |
Jun
(67) |
Jul
(104) |
Aug
(126) |
Sep
(144) |
Oct
(106) |
Nov
(154) |
Dec
(225) |
2012 |
Jan
(111) |
Feb
(87) |
Mar
(131) |
Apr
(102) |
May
(180) |
Jun
(160) |
Jul
(412) |
Aug
(315) |
Sep
(311) |
Oct
(369) |
Nov
(464) |
Dec
(284) |
2013 |
Jan
(343) |
Feb
(165) |
Mar
(174) |
Apr
(120) |
May
(153) |
Jun
(134) |
Jul
(202) |
Aug
(105) |
Sep
(228) |
Oct
(332) |
Nov
(192) |
Dec
(219) |
2014 |
Jan
(348) |
Feb
(194) |
Mar
(189) |
Apr
(188) |
May
(297) |
Jun
(206) |
Jul
(79) |
Aug
(279) |
Sep
(111) |
Oct
(159) |
Nov
(61) |
Dec
(78) |
2015 |
Jan
(152) |
Feb
(145) |
Mar
(239) |
Apr
(223) |
May
(248) |
Jun
(296) |
Jul
(172) |
Aug
(189) |
Sep
(338) |
Oct
(217) |
Nov
(131) |
Dec
(184) |
2016 |
Jan
(118) |
Feb
(221) |
Mar
(414) |
Apr
(412) |
May
(303) |
Jun
(133) |
Jul
(129) |
Aug
(121) |
Sep
(136) |
Oct
(67) |
Nov
(89) |
Dec
(245) |
2017 |
Jan
(349) |
Feb
(90) |
Mar
(328) |
Apr
(430) |
May
(284) |
Jun
(199) |
Jul
(164) |
Aug
(120) |
Sep
(57) |
Oct
(105) |
Nov
(108) |
Dec
(146) |
2018 |
Jan
(85) |
Feb
(48) |
Mar
(97) |
Apr
(62) |
May
(64) |
Jun
(136) |
Jul
(123) |
Aug
(87) |
Sep
(17) |
Oct
(27) |
Nov
(9) |
Dec
(16) |
2019 |
Jan
(9) |
Feb
(17) |
Mar
(18) |
Apr
(14) |
May
(8) |
Jun
|
Jul
(6) |
Aug
(12) |
Sep
(5) |
Oct
|
Nov
(2) |
Dec
|
2020 |
Jan
(8) |
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
(6) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: RBRi <rb...@us...> - 2019-03-30 17:45:38
|
Your second XPath is wrong: // addresses all subnodes of the document node use .// instead List<HtmlAnchor> zipcodeLinks = zipCodesDiv.getByXPath(".//li/a[contains(@href,'propertyrecord-search/')]"); --- ** [bugs:#2013] xpath returning more content than belongs in HtmlDivision** **Status:** open **Group:** 2.34.1 **Created:** Sat Mar 30, 2019 05:21 PM UTC by arya **Last Updated:** Sat Mar 30, 2019 05:21 PM UTC **Owner:** nobody I'm getting unussual results I have the following HTMLUnit script which is supposed to extract the zipcode hrefs. ~~~ WebClient webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(false); HtmlPage countyPage = webClient.getPage("https://www.realtor.com/propertyrecord-search/Autauga-County_AL"); HtmlDivision zipCodesDiv = (HtmlDivision) countyPage .getByXPath("//h3[contains(., \"Zip Codes\")]/following::div[1]").get(0); System.out.println(zipCodesDiv.asXml()); List<HtmlAnchor> zipcodeLinks = zipCodesDiv.getByXPath("//li/a[contains(@href,'propertyrecord-search/')]"); System.out.println("Zipcode link size: " + zipcodeLinks.size()); for (int zipcodeCount = 0; zipcodeCount < zipcodeLinks.size(); zipcodeCount++) { System.out.println(zipcodeLinks.get(zipcodeCount)); } ~~~ zipCodesDiv contains the div that contains the zipcodes, however zipCodesDiv.getByXPath("//li/a[contains(@href,'propertyrecord-search/')]"); is returning more content than it belongs in zipCodesDiv, it's also returning cities in Autauga County. Why is this happening? Is this a bug? --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-30 14:27:21
|
any news? --- ** [bugs:#2001] Insufficient validation of input elements** **Status:** open **Group:** 2.33 **Created:** Mon Nov 19, 2018 12:29 PM UTC by Anton **Last Updated:** Thu Dec 06, 2018 08:20 AM UTC **Owner:** nobody Hi All, It seems that current implementation supports only required attribute validation for input element (attribute required and value is not empty). But html specify more options: - maxlength - min - max - pattern So it would be nice to use them to calculate input validity before form submission. If it would be necessary I could provide patch for this feature a bit later. Best regards --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-30 14:00:18
|
- **status**: open --> closed - **assigned_to**: RBRi - **Comment**: This is an duplicate of https://github.com/HtmlUnit/htmlunit/issues/23. Will track the status on GitHub. --- ** [bugs:#2005] Polyfill webcomponentjs is not supported ** **Status:** closed **Group:** 2.33 **Created:** Tue Dec 11, 2018 02:21 AM UTC by Ben Alex **Last Updated:** Wed Dec 12, 2018 10:19 PM UTC **Owner:** RBRi I am attempting to scrape a third party web site which uses Polyfill. As reported in https://sourceforge.net/p/htmlunit/bugs/1930/, HtmlUnit does not appear to support web pages that render Polyfill components. The following minimal test (with HtmlUnit 2.33) illustrates the issue. ~~~java import static com.gargoylesoftware.htmlunit.BrowserVersion.BEST_SUPPORTED; import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.HtmlPage; import java.io.IOException; import static org.hamcrest.CoreMatchers.containsString; import static org.junit.Assert.assertThat; import org.junit.Test; public final class PolymerTest { @Test public void homePage() { try (final WebClient wc = new WebClient(BEST_SUPPORTED)) { wc.setAjaxController(new NicelyResynchronizingAjaxController()); final HtmlPage result = wc.getPage( "http://webcomponents.github.io/hello-world-polymer/bower_components/hello-world-polymer/"); wc.waitForBackgroundJavaScript(10000); wc.waitForBackgroundJavaScriptStartingBefore(10000); assertThat(result.asText(), containsString("Hello Unicorn :)")); } catch (final IOException ex) { throw new IllegalStateException(ex); } } } ~~~ Any advice much appreciated. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-30 13:47:53
|
Hi Ahmad, i can try to help but i need somethig that i can reproduce. Please provide a complete sample. If you do not like to post it here you can also send it to my private email (check the list of contributors on the HtmlUnit home page) --- ** [bugs:#2009] Clicking Radio button not taking affect** **Status:** open **Group:** 2.33 **Created:** Wed Jan 23, 2019 01:26 PM UTC by Ahmad Massri **Last Updated:** Sat Mar 30, 2019 01:46 PM UTC **Owner:** nobody **Attachments:** - [test.html](https://sourceforge.net/p/htmlunit/bugs/2009/attachment/test.html) (297.9 kB; text/html) Dear Sir, I am trying to select the [Emirates ID ] check box in the attached file using HTMLUnit but it is not working anyway, I have tried many ways to do that but always I have the page not changed. the following is a sample of the code that I am using: ~~~ HtmlPage nextPage = WEB_CLIENT.getPage(nextURL); WEB_CLIENT.waitForBackgroundJavaScript(1000); HtmlForm nextForm = nextPage.getFirstByXPath("//form[@id='patient_registration']"); List<HtmlRadioButtonInput> radioButtonsByName = nextForm.getRadioButtonsByName("registration_type"); // radioButtonsByName.get(1).setChecked(true); // nextPage.refresh(); // HtmlRadioButtonInput checkRadio2 = nextPage.getFirstByXPath("//input[@value='card_number']"); // checkRadio2.setChecked(false); // checkRadio2.removeAttribute("checked"); // HtmlRadioButtonInput checkRadio = nextPage.getFirstByXPath("//input[@value='emirates_id']"); // checkRadio.setChecked(true); // checkRadio.setAttribute("checked", "checked"); // WEB_CLIENT.waitForBackgroundJavaScript(2000); // checkRadio.click(); // WEB_CLIENT.waitForBackgroundJavaScript(2000); List<HtmlLabel> labels = nextPage.getByXPath("//label[@for='registration_type']"); // labels.get(0).setAttribute("class", "radio"); // labels.get(1).setAttribute("class", "radio checked"); // HtmlElement createdElement = (HtmlElement)nextPage.createElement("i"); // createdElement.setAttribute("class", "icon-dot"); // createdElement.setNodeValue("<_moz_generated_content_before>✔</_moz_generated_content_before>"); // HtmlSpan span = (HtmlSpan)nextPage.getFirstByXPath("//label[@id='radio_emirates_id']/span"); // span.appendChild(createdElement); labels.get(1).click(); WEB_CLIENT.waitForBackgroundJavaScript(1000); nextPage.getWebResponse().getContentAsString(); nextPage = (HtmlPage) WEB_CLIENT.getCurrentWindow().getEnclosedPage(); ~~~ it is always returning the old page as it is without affecting the screen!! can you please help on why it is not getting changed in the page. Regards, Ahmad --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-30 13:46:23
|
- Description has changed: Diff: ~~~~ --- old +++ new @@ -4,11 +4,11 @@ the following is a sample of the code that I am using: -HtmlPage nextPage = WEB_CLIENT.getPage(nextURL); +~~~ + HtmlPage nextPage = WEB_CLIENT.getPage(nextURL); WEB_CLIENT.waitForBackgroundJavaScript(1000); HtmlForm nextForm = nextPage.getFirstByXPath("//form[@id='patient_registration']"); -~~~ List<HtmlRadioButtonInput> radioButtonsByName = nextForm.getRadioButtonsByName("registration_type"); // radioButtonsByName.get(1).setChecked(true); // nextPage.refresh(); ~~~~ --- ** [bugs:#2009] Clicking Radio button not taking affect** **Status:** open **Group:** 2.33 **Created:** Wed Jan 23, 2019 01:26 PM UTC by Ahmad Massri **Last Updated:** Sat Mar 30, 2019 01:44 PM UTC **Owner:** nobody **Attachments:** - [test.html](https://sourceforge.net/p/htmlunit/bugs/2009/attachment/test.html) (297.9 kB; text/html) Dear Sir, I am trying to select the [Emirates ID ] check box in the attached file using HTMLUnit but it is not working anyway, I have tried many ways to do that but always I have the page not changed. the following is a sample of the code that I am using: ~~~ HtmlPage nextPage = WEB_CLIENT.getPage(nextURL); WEB_CLIENT.waitForBackgroundJavaScript(1000); HtmlForm nextForm = nextPage.getFirstByXPath("//form[@id='patient_registration']"); List<HtmlRadioButtonInput> radioButtonsByName = nextForm.getRadioButtonsByName("registration_type"); // radioButtonsByName.get(1).setChecked(true); // nextPage.refresh(); // HtmlRadioButtonInput checkRadio2 = nextPage.getFirstByXPath("//input[@value='card_number']"); // checkRadio2.setChecked(false); // checkRadio2.removeAttribute("checked"); // HtmlRadioButtonInput checkRadio = nextPage.getFirstByXPath("//input[@value='emirates_id']"); // checkRadio.setChecked(true); // checkRadio.setAttribute("checked", "checked"); // WEB_CLIENT.waitForBackgroundJavaScript(2000); // checkRadio.click(); // WEB_CLIENT.waitForBackgroundJavaScript(2000); List<HtmlLabel> labels = nextPage.getByXPath("//label[@for='registration_type']"); // labels.get(0).setAttribute("class", "radio"); // labels.get(1).setAttribute("class", "radio checked"); // HtmlElement createdElement = (HtmlElement)nextPage.createElement("i"); // createdElement.setAttribute("class", "icon-dot"); // createdElement.setNodeValue("<_moz_generated_content_before>✔</_moz_generated_content_before>"); // HtmlSpan span = (HtmlSpan)nextPage.getFirstByXPath("//label[@id='radio_emirates_id']/span"); // span.appendChild(createdElement); labels.get(1).click(); WEB_CLIENT.waitForBackgroundJavaScript(1000); nextPage.getWebResponse().getContentAsString(); nextPage = (HtmlPage) WEB_CLIENT.getCurrentWindow().getEnclosedPage(); ~~~ it is always returning the old page as it is without affecting the screen!! can you please help on why it is not getting changed in the page. Regards, Ahmad --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-30 13:44:49
|
- Description has changed: Diff: ~~~~ --- old +++ new @@ -7,7 +7,8 @@ HtmlPage nextPage = WEB_CLIENT.getPage(nextURL); WEB_CLIENT.waitForBackgroundJavaScript(1000); HtmlForm nextForm = nextPage.getFirstByXPath("//form[@id='patient_registration']"); - + +~~~ List<HtmlRadioButtonInput> radioButtonsByName = nextForm.getRadioButtonsByName("registration_type"); // radioButtonsByName.get(1).setChecked(true); // nextPage.refresh(); @@ -33,12 +34,11 @@ nextPage.getWebResponse().getContentAsString(); nextPage = (HtmlPage) WEB_CLIENT.getCurrentWindow().getEnclosedPage(); - ======================================================================== + +~~~ +it is always returning the old page as it is without affecting the screen!! +can you please help on why it is not getting changed in the page. - it is always returning the old page as it is without affecting the screen!! - - can you please help on why it is not getting changed in the page. - - Regards, - + Regards, + Ahmad ~~~~ --- ** [bugs:#2009] Clicking Radio button not taking affect** **Status:** open **Group:** 2.33 **Created:** Wed Jan 23, 2019 01:26 PM UTC by Ahmad Massri **Last Updated:** Thu Jan 24, 2019 07:56 AM UTC **Owner:** nobody **Attachments:** - [test.html](https://sourceforge.net/p/htmlunit/bugs/2009/attachment/test.html) (297.9 kB; text/html) Dear Sir, I am trying to select the [Emirates ID ] check box in the attached file using HTMLUnit but it is not working anyway, I have tried many ways to do that but always I have the page not changed. the following is a sample of the code that I am using: HtmlPage nextPage = WEB_CLIENT.getPage(nextURL); WEB_CLIENT.waitForBackgroundJavaScript(1000); HtmlForm nextForm = nextPage.getFirstByXPath("//form[@id='patient_registration']"); ~~~ List<HtmlRadioButtonInput> radioButtonsByName = nextForm.getRadioButtonsByName("registration_type"); // radioButtonsByName.get(1).setChecked(true); // nextPage.refresh(); // HtmlRadioButtonInput checkRadio2 = nextPage.getFirstByXPath("//input[@value='card_number']"); // checkRadio2.setChecked(false); // checkRadio2.removeAttribute("checked"); // HtmlRadioButtonInput checkRadio = nextPage.getFirstByXPath("//input[@value='emirates_id']"); // checkRadio.setChecked(true); // checkRadio.setAttribute("checked", "checked"); // WEB_CLIENT.waitForBackgroundJavaScript(2000); // checkRadio.click(); // WEB_CLIENT.waitForBackgroundJavaScript(2000); List<HtmlLabel> labels = nextPage.getByXPath("//label[@for='registration_type']"); // labels.get(0).setAttribute("class", "radio"); // labels.get(1).setAttribute("class", "radio checked"); // HtmlElement createdElement = (HtmlElement)nextPage.createElement("i"); // createdElement.setAttribute("class", "icon-dot"); // createdElement.setNodeValue("<_moz_generated_content_before>✔</_moz_generated_content_before>"); // HtmlSpan span = (HtmlSpan)nextPage.getFirstByXPath("//label[@id='radio_emirates_id']/span"); // span.appendChild(createdElement); labels.get(1).click(); WEB_CLIENT.waitForBackgroundJavaScript(1000); nextPage.getWebResponse().getContentAsString(); nextPage = (HtmlPage) WEB_CLIENT.getCurrentWindow().getEnclosedPage(); ~~~ it is always returning the old page as it is without affecting the screen!! can you please help on why it is not getting changed in the page. Regards, Ahmad --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-30 13:43:28
|
The NPE exception is gone (with one of the latest snapshot builds). But i fear there are still problems with this page. Please check.... --- ** [bugs:#2008] NPE in EventHandler** **Status:** accepted **Group:** 2.33 **Created:** Tue Jan 15, 2019 11:46 AM UTC by markus17 **Last Updated:** Fri Mar 15, 2019 12:57 PM UTC **Owner:** RBRi Hello, We are using HtmlUnit 2.33 for dealing with Javascripted web pages and get the text on the pages, this works very well! There are, however, a set of web pages (links below) that i cannot get the text from. HtmlUnit logs a bunch of errors and throws a NPE in EventHandler constructor line 50. Being new to HtmlUnit, i, of course, have absolutely no idea what the root of the problem is, but i'm filing a bug instead of a mailing list message due to the NPE i got. How can we get the final recipe text which i loaded via AJAX? Thanks! Example pages: https://www.aarstiderne.com/find-din-maaltidskasse/10-minutterskassen https://www.aarstiderne.com/find-din-maaltidskasse/kvikkassen Code: ~~~ BrowserVersion version = new BrowserVersion.BrowserVersionBuilder(BrowserVersion.CHROME).build(); WebClient client = new WebClient(version); client.getOptions().setThrowExceptionOnScriptError(false); client.getOptions().setCssEnabled(false); client.getOptions().setJavaScriptEnabled(true); client.getOptions().setDownloadImages(false); client.getOptions().setThrowExceptionOnFailingStatusCode(false); client.getOptions().setPrintContentOnFailingStatusCode(false); client.getOptions().setUseInsecureSSL(true); client.getOptions().setRedirectEnabled(false); client.setJavaScriptTimeout(20000); page = client.getPage(url); synchronized(page) { try { page.wait(20000); } catch (Exception e) {} } client.waitForBackgroundJavaScript(10000); ~~~ Log + stack trace: ~~~ 2019-01-15 12:08:20,689 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:20,696 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js] line=[2] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:22,479 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:22,537 INFO javascript.JavaScriptEngine - Caught script exception ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setInnerHTML at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 11 more Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more Enclosed exception: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more == CALLING JAVASCRIPT == function () { try { l(); } catch (e) { w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), t + 1 >= o && (r !== W && (s = void 0, u = [e]), n.rejectWith(s, u)); } } ======= EXCEPTION END ======== 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: HTMLOptionElement 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: MutationObserver 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: URL 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: TransitionEvent 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: AnimationEvent 2019-01-15 12:08:23,101 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,148 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,174 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:23,174 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,218 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,260 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,329 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,473 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,641 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,676 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,756 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,812 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] IFrame scrolling disabled for etrack1floaterframe 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] [init] Sending msg to iframe[etrack1floaterframe] (etrack1floaterframe:8:false:true:32:true:true:null:bodyOffset:null:null:0:false:parent:scroll) targetOrigin: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Initialising iFrame (https://system.etrack1.com/FormBuilder/ContactForm.aspx?fid=f59ee0e0-c898-4750-864c-c4374a92322f&dc=65746&custdc=65746) 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Reading data from page: {"targetOrigin":"*"} 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] TargetOrigin for parent set to: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] HTML & body height set to "auto" 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Enable public methods 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Start 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Iteration 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation End 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Input 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Up 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Down 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Orientation Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Print 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Ready State Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch End 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Cancel 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Iteration 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition End 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Create body MutationObserver 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] In page linking not enabled 2019-01-15 12:08:23,878 WARN htmlunit.WebConsole - Search config not found 2019-01-15 12:08:23,937 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,942 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,948 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,957 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock on 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Sending message to host page (etrack1floaterframe:196:1256:mutationObserver) 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:24,091 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock off 2019-01-15 12:08:24,092 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] -- 2019-01-15 12:08:25,067 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:26,563 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:28,065 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,005 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,006 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] No change in size detected 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:29,569 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:31,061 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:32,180 WARN parse.ParserFactory - ParserFactory: Plugin: org.apache.nutch.parse.html.HtmlParser mapped to contentType text/html via parse-plugins.xml, but not enabled via plugin.includes in nutch-default.xml 2019-01-15 12:08:32,560 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] ~~~ --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-13 19:30:44
|
Looks like i have a simple case that reproduces this problem (together with ore problems). Now i can work on this. --- ** [bugs:#2008] NPE in EventHandler** **Status:** accepted **Group:** 2.33 **Created:** Tue Jan 15, 2019 11:46 AM UTC by markus17 **Last Updated:** Tue Jan 29, 2019 12:46 PM UTC **Owner:** RBRi Hello, We are using HtmlUnit 2.33 for dealing with Javascripted web pages and get the text on the pages, this works very well! There are, however, a set of web pages (links below) that i cannot get the text from. HtmlUnit logs a bunch of errors and throws a NPE in EventHandler constructor line 50. Being new to HtmlUnit, i, of course, have absolutely no idea what the root of the problem is, but i'm filing a bug instead of a mailing list message due to the NPE i got. How can we get the final recipe text which i loaded via AJAX? Thanks! Example pages: https://www.aarstiderne.com/find-din-maaltidskasse/10-minutterskassen https://www.aarstiderne.com/find-din-maaltidskasse/kvikkassen Code: ~~~ BrowserVersion version = new BrowserVersion.BrowserVersionBuilder(BrowserVersion.CHROME).build(); WebClient client = new WebClient(version); client.getOptions().setThrowExceptionOnScriptError(false); client.getOptions().setCssEnabled(false); client.getOptions().setJavaScriptEnabled(true); client.getOptions().setDownloadImages(false); client.getOptions().setThrowExceptionOnFailingStatusCode(false); client.getOptions().setPrintContentOnFailingStatusCode(false); client.getOptions().setUseInsecureSSL(true); client.getOptions().setRedirectEnabled(false); client.setJavaScriptTimeout(20000); page = client.getPage(url); synchronized(page) { try { page.wait(20000); } catch (Exception e) {} } client.waitForBackgroundJavaScript(10000); ~~~ Log + stack trace: ~~~ 2019-01-15 12:08:20,689 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:20,696 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js] line=[2] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:22,479 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:22,537 INFO javascript.JavaScriptEngine - Caught script exception ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setInnerHTML at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 11 more Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more Enclosed exception: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more == CALLING JAVASCRIPT == function () { try { l(); } catch (e) { w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), t + 1 >= o && (r !== W && (s = void 0, u = [e]), n.rejectWith(s, u)); } } ======= EXCEPTION END ======== 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: HTMLOptionElement 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: MutationObserver 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: URL 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: TransitionEvent 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: AnimationEvent 2019-01-15 12:08:23,101 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,148 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,174 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:23,174 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,218 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,260 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,329 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,473 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,641 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,676 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,756 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,812 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] IFrame scrolling disabled for etrack1floaterframe 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] [init] Sending msg to iframe[etrack1floaterframe] (etrack1floaterframe:8:false:true:32:true:true:null:bodyOffset:null:null:0:false:parent:scroll) targetOrigin: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Initialising iFrame (https://system.etrack1.com/FormBuilder/ContactForm.aspx?fid=f59ee0e0-c898-4750-864c-c4374a92322f&dc=65746&custdc=65746) 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Reading data from page: {"targetOrigin":"*"} 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] TargetOrigin for parent set to: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] HTML & body height set to "auto" 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Enable public methods 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Start 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Iteration 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation End 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Input 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Up 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Down 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Orientation Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Print 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Ready State Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch End 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Cancel 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Iteration 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition End 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Create body MutationObserver 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] In page linking not enabled 2019-01-15 12:08:23,878 WARN htmlunit.WebConsole - Search config not found 2019-01-15 12:08:23,937 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,942 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,948 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,957 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock on 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Sending message to host page (etrack1floaterframe:196:1256:mutationObserver) 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:24,091 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock off 2019-01-15 12:08:24,092 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] -- 2019-01-15 12:08:25,067 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:26,563 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:28,065 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,005 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,006 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] No change in size detected 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:29,569 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:31,061 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:32,180 WARN parse.ParserFactory - ParserFactory: Plugin: org.apache.nutch.parse.html.HtmlParser mapped to contentType text/html via parse-plugins.xml, but not enabled via plugin.includes in nutch-default.xml 2019-01-15 12:08:32,560 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] ~~~ --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 20:11:57
|
- **status**: accepted --> closed --- ** [bugs:#1919] js_fonts not returning anything thus resulting has_lied_languages = true** **Status:** closed **Group:** 2.27 **Created:** Mon Sep 11, 2017 11:34 PM UTC by arya **Last Updated:** Thu Mar 07, 2019 08:11 PM UTC **Owner:** RBRi I'm testing HTMLUnit with a fingerprinting website and it returns has_lied_languages = true and js_fonts also contains no fonts which is probably the reason for has_lied_languages being true. I have put the fingerprinting page here, if you access it by Google Chrome you will see that js_fonts has some fonts in front of it. http://45.33.94.30/test.html But if you access it with HtmlUnit, js_fonts is blank and has_lied_languages = false ~~~ try { BrowserVersion bv = BrowserVersion.CHROME; webClient = new WebClient(bv); webClient.getOptions().setTimeout(900000); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.setCssErrorHandler(new SilentCssErrorHandler()); webClient.getCache().setMaxSize(0); LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog"); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(Level.OFF); java.util.logging.Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.html.HtmlScript").setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.WindowProxy") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(Level.OFF); java.util.logging.Logger.getLogger("org.apache").setLevel(Level.OFF); HtmlPage htmlPage = webClient.getPage("http://45.33.94.30/test.html"); Thread.sleep(9000); htmlPage.save(new File("result.html")); webClient.close(); } catch (Exception e) { e.printStackTrace(); } ~~~ --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 20:11:47
|
Will close this, i guess we have fixed what is possible with a headless browser. --- ** [bugs:#1919] js_fonts not returning anything thus resulting has_lied_languages = true** **Status:** accepted **Group:** 2.27 **Created:** Mon Sep 11, 2017 11:34 PM UTC by arya **Last Updated:** Tue Oct 10, 2017 07:06 PM UTC **Owner:** RBRi I'm testing HTMLUnit with a fingerprinting website and it returns has_lied_languages = true and js_fonts also contains no fonts which is probably the reason for has_lied_languages being true. I have put the fingerprinting page here, if you access it by Google Chrome you will see that js_fonts has some fonts in front of it. http://45.33.94.30/test.html But if you access it with HtmlUnit, js_fonts is blank and has_lied_languages = false ~~~ try { BrowserVersion bv = BrowserVersion.CHROME; webClient = new WebClient(bv); webClient.getOptions().setTimeout(900000); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.setCssErrorHandler(new SilentCssErrorHandler()); webClient.getCache().setMaxSize(0); LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog"); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(Level.OFF); java.util.logging.Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.html.HtmlScript").setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.WindowProxy") .setLevel(Level.OFF); java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(Level.OFF); java.util.logging.Logger.getLogger("org.apache").setLevel(Level.OFF); HtmlPage htmlPage = webClient.getPage("http://45.33.94.30/test.html"); Thread.sleep(9000); htmlPage.save(new File("result.html")); webClient.close(); } catch (Exception e) { e.printStackTrace(); } ~~~ --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 20:06:37
|
- **status**: open --> closed - **assigned_to**: Ahmed Ashour --> RBRi --- ** [bugs:#1991] HTMLUnit ADF support** **Status:** closed **Group:** 2.27 **Created:** Sat Oct 06, 2018 12:12 PM UTC by John Fernandes **Last Updated:** Thu Mar 07, 2019 08:06 PM UTC **Owner:** RBRi Hello, We are using htmlunit to automate an Oracle ADF based web site. We were using htlmunit 2.17 and looking to upgrade to 2.27. In 2.17 we were able to automate the site successfully. In 2.27 we are facing an issue where in the response received on click of link is not processed successfully. In 2.17 the same error use to occur but the response received was processed succefully. Can you please guide us on this ? We want to upgrade to more recent htmlunit version but are stuck this point. What change in htmlunit would cause this issue where this error blocks the further processing of the response ? How can we possibly resolve this ? Please suggest. Any help will be greatly appreciated. The below javascript error occurs: ======= EXCEPTION START ======== EcmaError: lineNumber=[6] column=[0] lineSource=[<no source>] name=[ReferenceError] sourceName=[script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)] message=[ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6)] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:894) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:637) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:518) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:774) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:750) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:741) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:317) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:382) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:247) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:268) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:800) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:756) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1236) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3178) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:999) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:250) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseXHtml(HTMLParser.java:206) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createXHtmlPage(DefaultPageCreator.java:284) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:169) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:522) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:396) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:313) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPageIfPossible(BaseFrameElement.java:185) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPage(BaseFrameElement.java:123) at com.gargoylesoftware.htmlunit.html.BaseFrameElement$2.execute(BaseFrameElement.java:414) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:945) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1015) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:988) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:84) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:929) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:869) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:850) at syniverse227.Syniverse227.ClickOnLNP(Syniverse227.java:286) at syniverse227.Syniverse227.main(Syniverse227.java:558) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3915) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3899) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3976) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1821) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1634) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:800) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:416) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:322) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3264) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:765) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:879) ... 43 more Thank you --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 20:06:22
|
The fix is now part of the 2.34.1 release. Will close this. --- ** [bugs:#1991] HTMLUnit ADF support** **Status:** open **Group:** 2.27 **Created:** Sat Oct 06, 2018 12:12 PM UTC by John Fernandes **Last Updated:** Sun Feb 24, 2019 12:34 PM UTC **Owner:** Ahmed Ashour Hello, We are using htmlunit to automate an Oracle ADF based web site. We were using htlmunit 2.17 and looking to upgrade to 2.27. In 2.17 we were able to automate the site successfully. In 2.27 we are facing an issue where in the response received on click of link is not processed successfully. In 2.17 the same error use to occur but the response received was processed succefully. Can you please guide us on this ? We want to upgrade to more recent htmlunit version but are stuck this point. What change in htmlunit would cause this issue where this error blocks the further processing of the response ? How can we possibly resolve this ? Please suggest. Any help will be greatly appreciated. The below javascript error occurs: ======= EXCEPTION START ======== EcmaError: lineNumber=[6] column=[0] lineSource=[<no source>] name=[ReferenceError] sourceName=[script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)] message=[ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6)] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:894) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:637) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:518) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:774) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:750) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:741) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:317) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:382) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:247) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:268) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:800) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:756) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1236) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3178) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:999) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:250) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseXHtml(HTMLParser.java:206) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createXHtmlPage(DefaultPageCreator.java:284) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:169) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:522) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:396) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:313) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPageIfPossible(BaseFrameElement.java:185) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPage(BaseFrameElement.java:123) at com.gargoylesoftware.htmlunit.html.BaseFrameElement$2.execute(BaseFrameElement.java:414) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:945) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1015) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:988) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:84) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:929) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:869) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:850) at syniverse227.Syniverse227.ClickOnLNP(Syniverse227.java:286) at syniverse227.Syniverse227.main(Syniverse227.java:558) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3915) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3899) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3976) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1821) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1634) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:800) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:416) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:322) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3264) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:765) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:879) ... 43 more Thank you --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 20:02:48
|
Tested again with 2.34.1 but still does not work --- ** [bugs:#1683] HtmlUnit 2.16 fails to load page on oracle adf faces** **Status:** open **Group:** 2.16 **Created:** Tue May 12, 2015 10:51 AM UTC by Uli Scherrer **Last Updated:** Tue May 12, 2015 10:51 AM UTC **Owner:** nobody When I click at the website "https://www.dhl-geschaeftskundenportal.de" on the anchor "Produkte" (or other) I did not get the wanted site. Unfortunately I have no access to the sources of the website. So I am not able to provide a minimal test case. ~~~~~~~ final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_31); webClient.getOptions().setThrowExceptionOnScriptError(false); URL url = new URL("https://www.dhl-geschaeftskundenportal.de"); HtmlPage startPage = (HtmlPage)webClient.getPage(url); String htmlId = "T:sf_topj_id_1:cmds_top_x"; //anchor "Produkte" HtmlAnchor anchor = (HtmlAnchor)startPage.getElementById(htmlId); HtmlPage productPage = anchor.click(); //sorry, no productPage; startPage loaded ~~~~~~~ Uli --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 19:57:26
|
Tested again with 2.34.1 and still a bunch of issues. --- ** [bugs:#1644] label alignment is incorrect** **Status:** open **Group:** 2.15 **Labels:** svg **Created:** Mon Sep 29, 2014 09:33 AM UTC by jerrywell **Last Updated:** Mon Jul 25, 2016 06:11 PM UTC **Owner:** nobody when we create the web client to visit Highchart page in order to the server side rendering. after we execute javascript to get SVG DOM from Highchart, the result will lose horizontal alignment shown as the following photos. this is my JAVA file. ``` WebClient client = new WebClient(BrowserVersion.CHROME); HtmlPage currentPage = client.getPage("issue/xxxx.zul"); client.waitForBackgroundJavaScript(10000); String svg = currentPage.executeJavaScript("chart.getSVG()").getJavaScriptResult().toString(); ``` this is the SVG DOM generated in Chrome browser. ``` <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" width="600" height="400"> <desc>Created with Highcharts 3.0.9</desc> <defs> <clipPath id="highcharts-3"> <rect fill="none" x="0" y="0" width="580" height="345"></rect> </clipPath> </defs> <g class="highcharts-series-group"> <g class="highcharts-series highcharts-tracker" visibility="visible" transform="translate(10,40) scale(1 1)" style="cursor:pointer;"> <path fill="none" d="M 465.37623875266127 157.51505478056018 C 460.37623875266127 157.51505478056018 452.47473202790013 158.766530500882 441.6101602813536 160.48730961632455 L 430.7455885348071 162.2080887317671" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 198.12499771783115 333.526789465764 C 203.12499771783115 333.526789465764 207.1539833309174 326.6154021282214 212.69383854891078 317.1122445391002 L 218.23369376690414 307.609086949979" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 115.97500346371763 150.05002836126488 C 120.97500346371763 150.05002836126488 128.81384388279162 151.64770820538013 139.59224945901832 153.8445179910386 L 150.37065503524502 156.04132777669707" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 167.7225511873661 58 C 172.7225511873661 58 183.95384312076118 58.744433080901615 191.0450754956647 67.1536199265556 L 198.1363078705682 75.5628067722096" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 198.94188010419947 35 C 203.94188010419947 35 251.09591498959713 24.66657993553642 253.69740395685812 35.35452899759781 L 256.2988929241191 46.0424780596592" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 281.2068326240386 12 C 286.2068326240386 12 286.3827476327828 20.039775370116224 286.6246307698004 31.037115618923043 L 286.86651390681794 42.03445586772986" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="#2f7ed8" d="M 289.9709765684734 42.50000295564777 A 142.5 142.5 0 0 1 334.1212508606259 320.49747312217187 L 290 185 A 0 0 0 0 0 290 185 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#0d233a" d="M 333.98573134946304 320.5415266169479 A 142.5 142.5 0 0 1 150.38577839260248 213.53277282285228 L 290 185 A 0 0 0 0 0 290 185 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#8bbc21" d="M 150.35731543164013 213.39314435812872 A 142.5 142.5 0 0 1 172.5837143121297 104.25555217066388 L 290 185 A 0 0 0 0 0 290 185 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(-10,-2)" visibility="visible"></path> <path fill="#910000" d="M 172.66451745463962 104.13817627676599 A 142.5 142.5 0 0 1 230.0279904524795 55.73435077008247 L 290 185 A 0 0 0 0 0 290 185 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#1aadce" d="M 230.1572860661675 55.67444340334956 A 142.5 142.5 0 0 1 283.53429089427783 42.646761168703335 L 290 185 A 0 0 0 0 0 290 185 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#492970" d="M 283.67664734223797 42.64036663728879 A 142.5 142.5 0 0 1 289.8020703588248 42.50013746021688 L 290 185 A 0 0 0 0 0 290 185 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> </g> <g class="highcharts-markers" visibility="visible" transform="translate(10,40) scale(1 1)"></g> </g> <text x="300" y="25" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:16px;color:#274b6d;fill:#274b6d;" text-anchor="middle" class="highcharts-title"> <tspan x="300">Browser market shares at a specific website, 2010 </tspan> </text> <g class="highcharts-data-labels highcharts-tracker" visibility="visible" transform="translate(10,40) scale(1 1)" style="cursor:pointer;"> <g style="cursor:pointer;" transform="translate(470,148)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Firefox</tspan> <tspan dx="0">: 45.0 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(138,324)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">IE</tspan> <tspan dx="0">: 26.8 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(22,140)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Chrome</tspan> <tspan dx="0">: 12.8 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(93,48)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Safari</tspan> <tspan dx="0">: 8.5 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(122,25)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Opera</tspan> <tspan dx="0">: 6.2 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(201,2)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Others</tspan> <tspan dx="0">: 0.7 %</tspan> </text> </g> </g> <g class="highcharts-legend"> <rect rx="5" ry="5" fill="none" x="0.5" y="0.5" width="7" height="7" stroke="#909090" stroke-width="1" visibility="hidden"></rect> <g> <g></g> </g> </g> <g class="highcharts-tooltip" style="cursor:default;padding:0;white-space:nowrap;" transform="translate(0,-999)"> <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85" stroke="black" stroke-opacity="0.049999999999999996" stroke-width="5" transform="translate(1, 1)"></rect> <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85" stroke="black" stroke-opacity="0.09999999999999999" stroke-width="3" transform="translate(1, 1)"></rect> <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85" stroke="black" stroke-opacity="0.15" stroke-width="1" transform="translate(1, 1)"></rect> <rect rx="3" ry="3" fill="rgb(255,255,255)" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85"></rect> <text x="8" y="21" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:12px;color:#333333;fill:#333333;"></text> </g> </svg> ``` this is the SVG DOM generated in HtmlUnit. ``` <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" width="600" height="400"> <desc>Created with Highcharts 3.0.9</desc> <defs> <clipPath id="highcharts-5"> <rect fill="none" x="0" y="0" width="580" height="375"></rect> </clipPath> </defs> <g class="highcharts-series-group"> <g class="highcharts-series highcharts-tracker" visibility="visible" transform="translate(10,10) scale(1 1)" style="cursor:pointer;"> <path fill="none" d="M 482.1669405427786 170.85566887487624 C 477.1669405427786 170.85566887487624 469.2654338180175 172.10714459519806 458.400862071471 173.82792371064062 L 447.5362903249245 175.54870282608317" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 189.5634032900233 364.2134875580423 C 194.5634032900233 364.2134875580423 198.59238890310942 357.30210022049965 204.1322441211028 347.79894263137845 L 209.67209933909615 338.29578504225725" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 99.31746757318521 162.65495869251993 C 104.31746757318521 162.65495869251993 112.1563079922592 164.25263853663517 122.93471356848592 166.44944832229365 L 133.71311914471264 168.64625810795212" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 162.8374059050713 55.63264479532426 C 167.8374059050713 55.63264479532426 172.99466581409203 61.74841704670898 180.08589818899554 70.15760389236299 L 187.17713056389906 78.56679073801699" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 198.29359885221854 32 C 203.29359885221854 32 247.07543204019373 24.14884047598673 249.67692100745472 34.83678953804814 L 252.27840997471571 45.52473860010954" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="none" d="M 280.8330132304694 11 C 285.8330132304694 11 286.0089282392102 19.0438858946874 286.2508113762278 30.041226143494224 L 286.49269451324534 41.03856639230105" stroke="#000000" stroke-width="1" visibility="visible"></path> <path fill="#2f7ed8" d="M 289.9675141240106 41.50000330825125 A 159.5 159.5 0 0 1 339.3848386825954 352.66208395078195 L 290 201 A 0 0 0 0 0 290 201 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#0d233a" d="M 339.2331519315043 352.71139295019805 A 159.5 159.5 0 0 1 133.73004669207086 232.9366825631224 L 290 201 A 0 0 0 0 0 290 201 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#8bbc21" d="M 133.69818814980067 232.78039666751954 A 159.5 159.5 0 0 1 158.5761574230503 110.62288120155 L 290 201 A 0 0 0 0 0 290 201 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(-10,-2)" visibility="visible"></path> <path fill="#910000" d="M 158.6666002387017 110.49150256943268 A 159.5 159.5 0 0 1 222.8734349275121 56.31318559879395 L 290 201 A 0 0 0 0 0 290 201 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#1aadce" d="M 223.01815528107863 56.246131388310374 A 159.5 159.5 0 0 1 282.7629431413145 41.66426951865395 L 290 201 A 0 0 0 0 0 290 201 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> <path fill="#492970" d="M 282.9222824637681 41.65711213086004 A 159.5 159.5 0 0 1 289.7784576998776 41.50015385897936 L 290 201 A 0 0 0 0 0 290 201 Z" stroke="#FFFFFF" stroke-width="1" stroke-linejoin="round" transform="translate(0,0)" visibility="visible"></path> </g> <g class="highcharts-markers" visibility="visible" transform="translate(10,10) scale(1 1)"></g> </g> <text x="300" y="25" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:16px;color:#274b6d;fill:#274b6d;" text-anchor="middle" class="highcharts-title"> <tspan x="300">Browser market shares at a specific website, 2010 </tspan> </text> <g class="highcharts-data-labels highcharts-tracker" visibility="visible" transform="translate(10,10) scale(1 1)" style="cursor:pointer;"> <g style="cursor:pointer;" transform="translate(0,161)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Firefox</tspan> <tspan dx="0">: 45.0 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(0,354)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">IE</tspan> <tspan dx="0">: 26.8 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(0,153)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Chrome</tspan> <tspan dx="0">: 12.8 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(0,46)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Safari</tspan> <tspan dx="0">: 8.5 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(0,22)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Opera</tspan> <tspan dx="0">: 6.2 %</tspan> </text> </g> <g style="cursor:pointer;" transform="translate(0,1)" visibility="visible"> <text x="3" y="15" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:11px;color:#000000;fill:#000000;"> <tspan style="font-weight:bold" x="3">Others</tspan> <tspan dx="0">: 0.7 %</tspan> </text> </g> </g> <g class="highcharts-legend"> <rect rx="5" ry="5" fill="none" x="0.5" y="0.5" width="7" height="7" stroke="#909090" stroke-width="1" visibility="hidden"></rect> <g> <g></g> </g> </g> <g class="highcharts-tooltip" style="cursor:default;padding:0;white-space:nowrap;" transform="translate(0,-999)"> <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85" stroke="black" stroke-opacity="0.049999999999999996" stroke-width="5" transform="translate(1, 1)"></rect> <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85" stroke="black" stroke-opacity="0.09999999999999999" stroke-width="3" transform="translate(1, 1)"></rect> <rect rx="3" ry="3" fill="none" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85" stroke="black" stroke-opacity="0.15" stroke-width="1" transform="translate(1, 1)"></rect> <rect rx="3" ry="3" fill="rgb(255,255,255)" x="0.5" y="0.5" width="16" height="16" fill-opacity="0.85"></rect> <text x="8" y="21" style="font-family:'lucida grande', 'lucida sans unicode', verdana, arial, helvetica, sans-serif;font-size:12px;color:#333333;fill:#333333;"></text> </g> </svg> ``` SVG DOM result generated in chrome  SVG DOM result generated in HtmlUnit  --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-03-07 19:42:38
|
- **status**: accepted --> closed - **assigned_to**: RBRi - **Comment**: The support for date fields is still not perfect but the value is no handled. --- ** [bugs:#1923] input element with type date does not store a value** **Status:** closed **Group:** 2.27 **Labels:** input date **Created:** Thu Oct 05, 2017 12:09 PM UTC by MickeyKnox **Last Updated:** Tue Mar 05, 2019 02:10 PM UTC **Owner:** RBRi Minimal example to reproduce: The html page: ~~~ <!DOCTYPE html> <html> <head> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta content="utf-8" http-equiv="encoding"> <title>Date</title> </head> <body> <input type="date" id="mydate"/> </body> </html> ~~~ The Java test code: ~~~ import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import org.testng.annotations.Test; public class MinimalDateInputTest { @Test public void runTest() { WebDriver driver = new HtmlUnitDriver(); driver.get("http://localhost:8000/date.html"); WebElement dateElement = driver.findElement(By.id("mydate")); dateElement.sendKeys("2017-10-05"); System.out.println("dateElement.text: " + dateElement.getText()); driver.close(); } } ~~~ The println does not print anything (aside from the static string). I would expect it to print the entered date. Also, upon examining the source code of HtmlDateInput.java, I think it's less the ideal to just ignore a possible parsing exception: ~~~ @Override public void setValueAttribute(final String newValue) { try { if (hasFeature(JS_INPUT_SET_VALUE_DATE_SUPPORTED)) { FORMATTER_.parse(newValue); } super.setValueAttribute(newValue); } catch (final DateTimeParseException e) { // ignore } } ~~~ I woudl expect a message to the user detailing the correct date format. However, the bug I'm reporting seems to be something else, since I'm entering the date in the correct format. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 18:00:22
|
- **status**: pending --> closed --- ** [bugs:#1962] FormSubmission not working - for log in** **Status:** closed **Group:** 2.30 **Labels:** input form submission **Created:** Fri May 11, 2018 04:13 PM UTC by Flake **Last Updated:** Sun Feb 24, 2019 06:00 PM UTC **Owner:** RBRi I cannot get form submission to work on a login form. I've wasted hours and tried everything but there's no improvement whatsoever. I've successfully used form submission for a search field - that worked as expected. But for the login form HtmlUnit just does not seem to POST at all. Or it does and I do not manage to get the correct page. I correctly retrieve the form and input elements. I've tried setting the inputs (HtmlTextInput and HtmlPasswordInput) via `type()`, `setValueAttribbute()` and `setNodeValue()`. I've tried submitting the form via getting the correct submit element and calling `page = submit.click();`, calling `page = (HtmlPage) username.type('\n');` and same for the password field. I've tried getting the correct page by assigning the return value from `click()`, `type()` and also via `webClient.getCurrentWindow().getEnclosedPage()`. I also checked all windows - there were two but the second didn't seem to have a page ... I've also waited for ages via `waitForBackgroundJavaScript()` and the other one as well as `Thread.sleep()` and have also tried the `NicelyResynchronizingAjaxController`. I've tried `webClient.getOptions().setRedirectEnabled(true)` and `getCache().setMaxSize(0)`; The page I try to log in to is this: https://www.dtad.de When output the page I can see that the URL is still the root URL and that the input fields have the values that I set. So either the page wasn't submitted or I'm on the wrong page. The form action is what it's supposed to be (...validate.do). But here comes the even weirder thing: When I try to log in via https://www.dtad.de/login I get the bad credentials message after form submit. So submission seems to work. But when I log in via the root page I should be forwarded to https://www.dtad.de/login (when entering bad credentials) but that does NOT happen. `page.asXml()` outputs the exact root page but with the input values set. I'm really deperate and exhausted. I hope you can spot the mistake. I've also checked if http -> https makes a difference but it ain't. Best, Flake --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 18:00:13
|
Thanks for the feedback. Enjoy HtmlUnit. --- ** [bugs:#1962] FormSubmission not working - for log in** **Status:** pending **Group:** 2.30 **Labels:** input form submission **Created:** Fri May 11, 2018 04:13 PM UTC by Flake **Last Updated:** Fri Jun 01, 2018 08:27 AM UTC **Owner:** RBRi I cannot get form submission to work on a login form. I've wasted hours and tried everything but there's no improvement whatsoever. I've successfully used form submission for a search field - that worked as expected. But for the login form HtmlUnit just does not seem to POST at all. Or it does and I do not manage to get the correct page. I correctly retrieve the form and input elements. I've tried setting the inputs (HtmlTextInput and HtmlPasswordInput) via `type()`, `setValueAttribbute()` and `setNodeValue()`. I've tried submitting the form via getting the correct submit element and calling `page = submit.click();`, calling `page = (HtmlPage) username.type('\n');` and same for the password field. I've tried getting the correct page by assigning the return value from `click()`, `type()` and also via `webClient.getCurrentWindow().getEnclosedPage()`. I also checked all windows - there were two but the second didn't seem to have a page ... I've also waited for ages via `waitForBackgroundJavaScript()` and the other one as well as `Thread.sleep()` and have also tried the `NicelyResynchronizingAjaxController`. I've tried `webClient.getOptions().setRedirectEnabled(true)` and `getCache().setMaxSize(0)`; The page I try to log in to is this: https://www.dtad.de When output the page I can see that the URL is still the root URL and that the input fields have the values that I set. So either the page wasn't submitted or I'm on the wrong page. The form action is what it's supposed to be (...validate.do). But here comes the even weirder thing: When I try to log in via https://www.dtad.de/login I get the bad credentials message after form submit. So submission seems to work. But when I log in via the root page I should be forwarded to https://www.dtad.de/login (when entering bad credentials) but that does NOT happen. `page.asXml()` outputs the exact root page but with the input values set. I'm really deperate and exhausted. I hope you can spot the mistake. I've also checked if http -> https makes a difference but it ain't. Best, Flake --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 17:58:49
|
- **status**: pending --> closed --- ** [bugs:#2004] HtmlUnit 2.33 not processes chart js ** **Status:** closed **Group:** 2.33 **Created:** Fri Dec 07, 2018 03:15 PM UTC by Manikandan Kabali **Last Updated:** Sun Feb 24, 2019 05:58 PM UTC **Owner:** RBRi Hi all, I am using chart.js library to create chart in my code. Chart.js renders chart in the canvas dynamically. When I process the html using HtmlUnit, it is not rendering the chart in the canvas. I think HtmlUnit is not processing animation. It results in empty canvas. Please suggest some solutions to process chart.js code. Thanks, Manikandan Kabali --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 17:58:38
|
No feedback, will close this --- ** [bugs:#2004] HtmlUnit 2.33 not processes chart js ** **Status:** pending **Group:** 2.33 **Created:** Fri Dec 07, 2018 03:15 PM UTC by Manikandan Kabali **Last Updated:** Tue Jan 22, 2019 07:31 PM UTC **Owner:** RBRi Hi all, I am using chart.js library to create chart in my code. Chart.js renders chart in the canvas dynamically. When I process the html using HtmlUnit, it is not rendering the chart in the canvas. I think HtmlUnit is not processing animation. It results in empty canvas. Please suggest some solutions to process chart.js code. Thanks, Manikandan Kabali --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 12:34:35
|
Sorry for the long silence here. Have done some fixes regarding the CDATA stuff. If you like, you can try with the latest snapshot build (will inform via twitter https://twitter.com/HtmlUnit if the related one is available) --- ** [bugs:#1991] HTMLUnit ADF support** **Status:** open **Group:** 2.27 **Created:** Sat Oct 06, 2018 12:12 PM UTC by John Fernandes **Last Updated:** Mon Feb 04, 2019 10:48 PM UTC **Owner:** Ahmed Ashour Hello, We are using htmlunit to automate an Oracle ADF based web site. We were using htlmunit 2.17 and looking to upgrade to 2.27. In 2.17 we were able to automate the site successfully. In 2.27 we are facing an issue where in the response received on click of link is not processed successfully. In 2.17 the same error use to occur but the response received was processed succefully. Can you please guide us on this ? We want to upgrade to more recent htmlunit version but are stuck this point. What change in htmlunit would cause this issue where this error blocks the further processing of the response ? How can we possibly resolve this ? Please suggest. Any help will be greatly appreciated. The below javascript error occurs: ======= EXCEPTION START ======== EcmaError: lineNumber=[6] column=[0] lineSource=[<no source>] name=[ReferenceError] sourceName=[script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)] message=[ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6)] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:894) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:637) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:518) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:774) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:750) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:741) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:317) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:382) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:247) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:268) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:800) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:756) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1236) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3178) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:999) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:250) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseXHtml(HTMLParser.java:206) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createXHtmlPage(DefaultPageCreator.java:284) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:169) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:522) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:396) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:313) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPageIfPossible(BaseFrameElement.java:185) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPage(BaseFrameElement.java:123) at com.gargoylesoftware.htmlunit.html.BaseFrameElement$2.execute(BaseFrameElement.java:414) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:945) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1015) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:988) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:84) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:929) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:869) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:850) at syniverse227.Syniverse227.ClickOnLNP(Syniverse227.java:286) at syniverse227.Syniverse227.main(Syniverse227.java:558) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3915) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3899) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3976) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1821) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1634) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:800) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:416) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:322) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3264) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:765) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:879) ... 43 more Thank you --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 12:20:35
|
- **status**: open --> closed - **assigned_to**: RBRi - **Comment**: Should be fixed now. Will inform via twitter (https://twitter.com/HtmlUnit) if a new snapshot is avalialable. Please check if your problem is gone. Your cases `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` will still fail, because the CDATA processing is done by the (X)Html parser. Reopen this if it is still not working. --- ** [bugs:#2012] Javascript in CDATA block causes EvaluatorException: illegally formed XML syntax** **Status:** closed **Group:** 2.33 **Created:** Mon Feb 11, 2019 01:16 AM UTC by Ron HD **Last Updated:** Sun Feb 24, 2019 12:16 PM UTC **Owner:** RBRi Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. Tracing through the code, I can see that the TokenStream.getNextXMLToken() method successfully scans over the CDATA block, but then rather than processing the contents of the block, it just does: `parser.addError("msg.XML.bad.form");` I'm not sure why it does this, or the right way to fix it. With a little guidance, I may be able to provide a fix. Or if someone can give me one, it would be great. Otherwise, I'm being forced to use Selenium with Firefox, which is introducing other problems. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 12:16:09
|
Same problem with style declarations. --- ** [bugs:#2012] Javascript in CDATA block causes EvaluatorException: illegally formed XML syntax** **Status:** open **Group:** 2.33 **Created:** Mon Feb 11, 2019 01:16 AM UTC by Ron HD **Last Updated:** Sun Feb 24, 2019 11:19 AM UTC **Owner:** nobody Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. Tracing through the code, I can see that the TokenStream.getNextXMLToken() method successfully scans over the CDATA block, but then rather than processing the contents of the block, it just does: `parser.addError("msg.XML.bad.form");` I'm not sure why it does this, or the right way to fix it. With a little guidance, I may be able to provide a fix. Or if someone can give me one, it would be great. Otherwise, I'm being forced to use Selenium with Firefox, which is introducing other problems. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-24 11:19:32
|
As always it took some time to work on this. From my point of view this has to be handle by the parser. Have done a fix because the neko parser can already handle this. Please have a look at twitter (https://twitter.com/HtmlUnit). Will inform about a new snapshot if available. --- ** [bugs:#2012] Javascript in CDATA block causes EvaluatorException: illegally formed XML syntax** **Status:** open **Group:** 2.33 **Created:** Mon Feb 11, 2019 01:16 AM UTC by Ron HD **Last Updated:** Sun Feb 24, 2019 09:54 AM UTC **Owner:** nobody Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. Tracing through the code, I can see that the TokenStream.getNextXMLToken() method successfully scans over the CDATA block, but then rather than processing the contents of the block, it just does: `parser.addError("msg.XML.bad.form");` I'm not sure why it does this, or the right way to fix it. With a little guidance, I may be able to provide a fix. Or if someone can give me one, it would be great. Otherwise, I'm being forced to use Selenium with Firefox, which is introducing other problems. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |