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...> - 2020-01-04 17:02:52
|
Have tested it again - looks good with the current snapshot code. Will close this. Please open a new issue on github if you need more fixes. --- ** [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:** Thu Mar 07, 2019 07:57 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...> - 2020-01-04 16:51:15
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [bugs:#2021] ClassCastException when calling webClient.getPage()** **Status:** closed **Group:** 2.21 **Created:** Fri Aug 16, 2019 07:01 AM UTC by Summer Guo **Last Updated:** Fri Nov 01, 2019 01:46 PM UTC **Owner:** RBRi Im using 2.20 ClassCastException when calling webClient.getPage() this bug only happens when JS is enabled FYI: the url im trying to test is: https://steamcommunity.com/openid/login Thanks in advance! Caused by: com.gargoylesoftware.htmlunit.ScriptException: Exception invoking observe at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:883) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:815) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:787) at com.gargoylesoftware.htmlunit.InteractivePage.executeJavaScriptFunctionIfPossible(InteractivePage.java:216) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:258) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:322) at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:192) at com.gargoylesoftware.htmlunit.html.DomElement$2.run(DomElement.java:1167) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539) at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1172) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1223) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:254) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:484) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:416) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:401) at com.amazon.agssocial.internal.identity.service.helpers.SteamOpenIdHelper.sendAuthRequest(AuthHelper.java:58) at com.amazon.agssocial.internal.identity.service.BaseTest.testGetCredentialsForOauthAccount(BaseTest.java:324) ... 15 more Caused by: java.lang.RuntimeException: Exception invoking observe at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:193) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:453) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1479) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:252) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3345) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:808) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:868) ... 35 more Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement at com.gargoylesoftware.htmlunit.javascript.host.dom.MutationObserver.observe(MutationObserver.java:85) 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:167) ... 44 more --- 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: poncherello <ren...@ho...> - 2019-11-06 11:13:13
|
Hi, I'm trying to make a login in the page https://support.virtustream.com/, but I can't retrieve the login form from iframe. I'm using the following code: final WebClient webClient = new WebClient() HtmlPage page = webClient.getPage("https://support.virtustream.com/"); HtmlPage loginPage= page.getFrameByName("gsft_main").getFrameElement().getEnclosedPage(); HtmlForm form = loginPage.getFormByName("loginPage"); HtmlTextInput textField = form.getInputByName("user_name"); The problem is that the second page that I try to get is dinamically retrieved using a struts action. If I print the content of loginPage as text I only get: <html> <head></head> <body></body> </html> Can you help me please? Thanks -- Sent from: http://htmlunit.10904.n7.nabble.com/HtmlUnit-Dev-f3.html |
From: RBRi <rb...@us...> - 2019-11-01 13:46:48
|
No futher feedback, will close this. --- ** [bugs:#2021] ClassCastException when calling webClient.getPage()** **Status:** open **Group:** 2.21 **Created:** Fri Aug 16, 2019 07:01 AM UTC by Summer Guo **Last Updated:** Sat Aug 24, 2019 04:25 PM UTC **Owner:** nobody Im using 2.20 ClassCastException when calling webClient.getPage() this bug only happens when JS is enabled FYI: the url im trying to test is: https://steamcommunity.com/openid/login Thanks in advance! Caused by: com.gargoylesoftware.htmlunit.ScriptException: Exception invoking observe at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:883) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:815) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:787) at com.gargoylesoftware.htmlunit.InteractivePage.executeJavaScriptFunctionIfPossible(InteractivePage.java:216) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:258) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:322) at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:192) at com.gargoylesoftware.htmlunit.html.DomElement$2.run(DomElement.java:1167) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539) at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1172) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1223) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:254) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:484) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:416) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:401) at com.amazon.agssocial.internal.identity.service.helpers.SteamOpenIdHelper.sendAuthRequest(AuthHelper.java:58) at com.amazon.agssocial.internal.identity.service.BaseTest.testGetCredentialsForOauthAccount(BaseTest.java:324) ... 15 more Caused by: java.lang.RuntimeException: Exception invoking observe at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:193) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:453) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1479) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:252) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3345) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:808) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:868) ... 35 more Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement at com.gargoylesoftware.htmlunit.javascript.host.dom.MutationObserver.observe(MutationObserver.java:85) 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:167) ... 44 more --- 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-09-07 08:55:18
|
Can you please add the whole stack trace. --- ** [bugs:#2022] java.lang.ExceptionInInitializerError is thrown when new WebClient** **Status:** open **Group:** 2.36.0 **Created:** Mon Aug 26, 2019 03:53 PM UTC by Karen Zhang **Last Updated:** Mon Aug 26, 2019 03:53 PM UTC **Owner:** nobody Hi, I am tring to integrate HtmlUnit into my Android project, but the java.lang.ExceptionInInitializerError is thrown when create WebClient. My code is : WebClient wc = new WebClient(); Grandle: compile 'net.sourceforge.htmlunit:htmlunit:2.36.0' Please advise, thanks --- 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-09-07 08:54:18
|
Have added a commetn in the relase notes --- ** [bugs:#2023] no more getNewPage() in ScriptResult** **Status:** closed **Group:** 2.36.0 **Created:** Wed Sep 04, 2019 05:04 PM UTC by ChristopheD **Last Updated:** Sat Sep 07, 2019 08:53 AM UTC **Owner:** RBRi Hello, I am migrating from 2.31 to 2.36 and I see that in the class ScriptResult, the method getNewPage() has been removed. What is the startegy to replace getNewPage() and get the page that is loaded at the end of the script execution. Thank you for your help. Regards, Christophe --- 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-09-07 08:53:51
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [bugs:#2023] no more getNewPage() in ScriptResult** **Status:** closed **Group:** 2.36.0 **Created:** Wed Sep 04, 2019 05:04 PM UTC by ChristopheD **Last Updated:** Fri Sep 06, 2019 06:29 PM UTC **Owner:** RBRi Hello, I am migrating from 2.31 to 2.36 and I see that in the class ScriptResult, the method getNewPage() has been removed. What is the startegy to replace getNewPage() and get the page that is loaded at the end of the script execution. Thank you for your help. Regards, Christophe --- 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-09-06 18:30:00
|
You can call something like page.getWebClient().getCurrentWindow().getEnclosedPage(); In fact the newPage from the result was filled like this, it was not related to the script. --- ** [bugs:#2023] no more getNewPage() in ScriptResult** **Status:** open **Group:** 2.36.0 **Created:** Wed Sep 04, 2019 05:04 PM UTC by ChristopheD **Last Updated:** Wed Sep 04, 2019 05:04 PM UTC **Owner:** nobody Hello, I am migrating from 2.31 to 2.36 and I see that in the class ScriptResult, the method getNewPage() has been removed. What is the startegy to replace getNewPage() and get the page that is loaded at the end of the script execution. Thank you for your help. Regards, Christophe --- 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-09-04 17:57:13
|
Am 4. September 2019 19:04:26 MESZ schrieb ChristopheD <cda...@us...>: > > > >--- > >** [bugs:#2023] no more getNewPage() in ScriptResult** > >**Status:** open >**Group:** 2.36.0 >**Created:** Wed Sep 04, 2019 05:04 PM UTC by ChristopheD >**Last Updated:** Wed Sep 04, 2019 05:04 PM UTC >**Owner:** nobody > > >Hello, > >I am migrating from 2.31 to 2.36 and I see that in the class >ScriptResult, the method getNewPage() has been removed. What is the >startegy to replace getNewPage() and get the page that is loaded at the >end of the script execution. > >Thank you for your help. > >Regards, >Christophe > > >--- > >Sent from sourceforge.net because you indicated interest in ><https://sourceforge.net/p/htmlunit/bugs/2023/> > > > >To unsubscribe from further messages, please visit ><https://sourceforge.net/auth/subscriptions/> Will have a look at this at the weekend. --- ** [bugs:#2023] no more getNewPage() in ScriptResult** **Status:** open **Group:** 2.36.0 **Created:** Wed Sep 04, 2019 05:04 PM UTC by ChristopheD **Last Updated:** Wed Sep 04, 2019 05:04 PM UTC **Owner:** nobody Hello, I am migrating from 2.31 to 2.36 and I see that in the class ScriptResult, the method getNewPage() has been removed. What is the startegy to replace getNewPage() and get the page that is loaded at the end of the script execution. Thank you for your help. Regards, Christophe --- 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-08-24 16:25:24
|
Please try somethig like signInButton.click(); webClient.waitForBackgroundJavaScript(10_000); redirectPage = (HtmlPage) page.getEnclosingWindow().getTopWindow().getEnclosedPage(); --- ** [bugs:#2021] ClassCastException when calling webClient.getPage()** **Status:** open **Group:** 2.21 **Created:** Fri Aug 16, 2019 07:01 AM UTC by Summer Guo **Last Updated:** Fri Aug 16, 2019 08:05 AM UTC **Owner:** nobody Im using 2.20 ClassCastException when calling webClient.getPage() this bug only happens when JS is enabled FYI: the url im trying to test is: https://steamcommunity.com/openid/login Thanks in advance! Caused by: com.gargoylesoftware.htmlunit.ScriptException: Exception invoking observe at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:883) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:815) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:787) at com.gargoylesoftware.htmlunit.InteractivePage.executeJavaScriptFunctionIfPossible(InteractivePage.java:216) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:258) at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:322) at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:192) at com.gargoylesoftware.htmlunit.html.DomElement$2.run(DomElement.java:1167) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539) at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1172) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1223) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:254) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:484) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:416) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:401) at com.amazon.agssocial.internal.identity.service.helpers.SteamOpenIdHelper.sendAuthRequest(AuthHelper.java:58) at com.amazon.agssocial.internal.identity.service.BaseTest.testGetCredentialsForOauthAccount(BaseTest.java:324) ... 15 more Caused by: java.lang.RuntimeException: Exception invoking observe at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:193) at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:453) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1479) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:252) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3345) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:808) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:868) ... 35 more Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement at com.gargoylesoftware.htmlunit.javascript.host.dom.MutationObserver.observe(MutationObserver.java:85) 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:167) ... 44 more --- 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-08-12 18:06:42
|
- **status**: wont-fix --> closed --- ** [bugs:#1983] Need a help in reading contents of the site using HtmlUnit 2.27** **Status:** closed **Group:** 2.27 **Created:** Thu Aug 09, 2018 12:12 PM UTC by sitaram **Last Updated:** Mon Aug 12, 2019 06:06 PM UTC **Owner:** RBRi **Attachments:** - [htmlUnitExample.7z](https://sourceforge.net/p/htmlunit/bugs/1983/attachment/htmlUnitExample.7z) (1.5 MB; application/octet-stream) Dear Sir I am work with HtmlUnit 2.27 version . I want to read contents of website https://mysyniverse.syniverse.com/ . Issue i am facing is I am not able to click select SPID link available using 2.27 I tried with windoschnageListner but it is not forming proper HtmlPage. I have recreated page using response we are getting but then when i try to click selectspid then I am getting error com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. Added entire code Please I need help Thnak 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-08-12 18:06:33
|
- **status**: open --> wont-fix - **assigned_to**: Sudhan Moghe --> RBRi --- ** [bugs:#1983] Need a help in reading contents of the site using HtmlUnit 2.27** **Status:** wont-fix **Group:** 2.27 **Created:** Thu Aug 09, 2018 12:12 PM UTC by sitaram **Last Updated:** Mon Aug 12, 2019 06:06 PM UTC **Owner:** RBRi **Attachments:** - [htmlUnitExample.7z](https://sourceforge.net/p/htmlunit/bugs/1983/attachment/htmlUnitExample.7z) (1.5 MB; application/octet-stream) Dear Sir I am work with HtmlUnit 2.27 version . I want to read contents of website https://mysyniverse.syniverse.com/ . Issue i am facing is I am not able to click select SPID link available using 2.27 I tried with windoschnageListner but it is not forming proper HtmlPage. I have recreated page using response we are getting but then when i try to click selectspid then I am getting error com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. Added entire code Please I need help Thnak 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-08-12 18:06:15
|
Sorry for not having the time to fix this so far. The provided credentials are no longer working. If you are still interested in a solution, please try with the latest version and open a new issue at github if you still facing problems. --- ** [bugs:#1983] Need a help in reading contents of the site using HtmlUnit 2.27** **Status:** open **Group:** 2.27 **Created:** Thu Aug 09, 2018 12:12 PM UTC by sitaram **Last Updated:** Fri Aug 10, 2018 11:53 AM UTC **Owner:** Sudhan Moghe **Attachments:** - [htmlUnitExample.7z](https://sourceforge.net/p/htmlunit/bugs/1983/attachment/htmlUnitExample.7z) (1.5 MB; application/octet-stream) Dear Sir I am work with HtmlUnit 2.27 version . I want to read contents of website https://mysyniverse.syniverse.com/ . Issue i am facing is I am not able to click select SPID link available using 2.27 I tried with windoschnageListner but it is not forming proper HtmlPage. I have recreated page using response we are getting but then when i try to click selectspid then I am getting error com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. Added entire code Please I need help Thnak 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-08-01 17:36:41
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** **Status:** closed **Group:** Latest SVN **Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS **Last Updated:** Thu Aug 01, 2019 05:36 PM UTC **Owner:** RBRi Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-08-01 17:36:22
|
No futher response - will close this. --- ** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** **Status:** open **Group:** Latest SVN **Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS **Last Updated:** Sun Apr 07, 2019 02:50 PM UTC **Owner:** nobody Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-08-01 17:34:29
|
- **status**: open --> closed - **assigned_to**: Ahmed Ashour --> nobody - **Comment**: Sorry but this issue is really outdated - will close this. Feel free to open a new one on github if you still have problem with the latest HtmlUnit. --- ** [bugs:#1981] Need a help in reading contents of the site using HtmlUnit 2.27** **Status:** closed **Group:** 2.27 **Created:** Tue Aug 07, 2018 10:26 AM UTC by sitaram **Last Updated:** Thu Aug 09, 2018 12:39 PM UTC **Owner:** nobody **Attachments:** - [Syniverse.java](https://sourceforge.net/p/htmlunit/bugs/1981/attachment/Syniverse.java) (24.4 kB; application/octet-stream) Dear Sir I am work with HtmlUnit 2.27 version . I want to read contents of website https://mysyniverse.syniverse.com/ . Credential Issue i am facing is I am not able to click select SPID link available using 2.27 I tried with windoschnageListner but it is not forming proper HtmlPage. I have recreated page using response we are getting but then when i try to click selectspid then I am getting error com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. Added entire code Please I need help Thnak 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-08-01 17:32:30
|
- **status**: open --> closed --- ** [bugs:#2019] Unwanted WebSocket Connection** **Status:** closed **Group:** 2.35.0 **Created:** Fri Jul 05, 2019 10:55 PM UTC by Ahsan Kazmi **Last Updated:** Thu Aug 01, 2019 05:32 PM UTC **Owner:** nobody I tried searching for a solution but was unable to find how to prevent connection to a websocket. I only need to read html that is rendered through javascript, and I am able to do that fine. The following is my code: webClient = new WebClient(BrowserVersion.CHROME); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setJavaScriptEnabled(true); page = webClient.getPage(address); webClient.waitForBackgroundJavaScript(3000); List<DomElement> statusElementList = page.getByXPath("//span[contains(@class, 'state-title')]"); String status = statusElementList.get(0).getFirstChild().toString(); The following is the stacktrace I am seeing: websocket error info WebConsole.java : 422 2019-07-05 22:44:09 [UTC] [HttpClient@1433621164-98] INFO c.g.htmlunit.WebConsole websocket closed. ERROR c.g.h.javascript.host.WebSocket - [trueEDGE] Customer: qa-uss, Device: connect error for url 'wss://192.168.44.202/statusd': run WebSocket.java : 179 java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 400 Bad Request at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at com.gargoylesoftware.htmlunit.javascript.host.WebSocket$1.run(WebSocket.java:175) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591) at java.lang.Thread.run(Thread.java:748) Caused by: org.eclipse.jetty.websocket.api.UpgradeException: 400 Bad Request at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:520) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:459) at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:405) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:297) at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:606) at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1536) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1384) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:170) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:131) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:70) at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:130) at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:116) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:289) at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:149) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) ... 3 common frames omitted --- 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-08-01 17:32:20
|
The only option from my point of view is to remove the class from the js-setup. But this is so far not supported (at least what i can see at the moment). If you still need this feature - please open an new issue on github. --- ** [bugs:#2019] Unwanted WebSocket Connection** **Status:** open **Group:** 2.35.0 **Created:** Fri Jul 05, 2019 10:55 PM UTC by Ahsan Kazmi **Last Updated:** Thu Jul 11, 2019 07:05 PM UTC **Owner:** nobody I tried searching for a solution but was unable to find how to prevent connection to a websocket. I only need to read html that is rendered through javascript, and I am able to do that fine. The following is my code: webClient = new WebClient(BrowserVersion.CHROME); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setJavaScriptEnabled(true); page = webClient.getPage(address); webClient.waitForBackgroundJavaScript(3000); List<DomElement> statusElementList = page.getByXPath("//span[contains(@class, 'state-title')]"); String status = statusElementList.get(0).getFirstChild().toString(); The following is the stacktrace I am seeing: websocket error info WebConsole.java : 422 2019-07-05 22:44:09 [UTC] [HttpClient@1433621164-98] INFO c.g.htmlunit.WebConsole websocket closed. ERROR c.g.h.javascript.host.WebSocket - [trueEDGE] Customer: qa-uss, Device: connect error for url 'wss://192.168.44.202/statusd': run WebSocket.java : 179 java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 400 Bad Request at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at com.gargoylesoftware.htmlunit.javascript.host.WebSocket$1.run(WebSocket.java:175) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591) at java.lang.Thread.run(Thread.java:748) Caused by: org.eclipse.jetty.websocket.api.UpgradeException: 400 Bad Request at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:520) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:459) at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:405) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:297) at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:606) at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1536) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1384) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:170) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:131) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:70) at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:130) at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:116) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:289) at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:149) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) ... 3 common frames omitted --- 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-08-01 17:17:50
|
Sorry for being that late on the issue. Adding support for this is very time consuming. Any help will be great. --- ** [bugs:#1994] Javascript function supportedLocalesOf is missing** **Status:** open **Group:** 2.33 **Created:** Wed Oct 17, 2018 01:43 PM UTC by Robert Scharpf **Last Updated:** Wed Oct 17, 2018 01:43 PM UTC **Owner:** nobody **Attachments:** - [HtmlUnitJS_Bug.java](https://sourceforge.net/p/htmlunit/bugs/1994/attachment/HtmlUnitJS_Bug.java) (1.3 kB; application/octet-stream) - [Output.txt](https://sourceforge.net/p/htmlunit/bugs/1994/attachment/Output.txt) (360.8 kB; text/plain) The test case is attached and also the output. EcmaError: lineNumber=[50] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[https://support.hpe.com/resources/sahome/static/index.js?20180918155927] message=[TypeError: Cannot find function supportedLocalesOf in object function NumberFormat() { [native code] }. (https://support.hpe.com/resources/sahome/static/index.js?20180918155927#50)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function supportedLocalesOf in object function NumberFormat() { [native code] }. (https://support.hpe.com/resources/sahome/static/index.js?20180918155927#50) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/supportedLocalesOf this is a suported function of Javascript: The Intl.Collator.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale. There are many Javascript errors reported by HtmlUnit. The returned page conatins only the static HTML part while the important dynamic part created by Javascript is missing. Note: The page loads well with IExplorer 11, Firefox 60+, Chrome. Any ideas how I can get the missing dynamic part created by Javascript? Thanks, Robert --- 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-08-01 17:15:45
|
- **status**: accepted --> closed --- ** [bugs:#2008] NPE in EventHandler** **Status:** closed **Group:** 2.33 **Created:** Tue Jan 15, 2019 11:46 AM UTC by markus17 **Last Updated:** Thu Aug 01, 2019 05:15 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-08-01 17:15:16
|
Ok, will close this; feel free to open new issues (on github preffered) if you have more problems. --- ** [bugs:#2008] NPE in EventHandler** **Status:** accepted **Group:** 2.33 **Created:** Tue Jan 15, 2019 11:46 AM UTC by markus17 **Last Updated:** Tue Apr 02, 2019 09:58 AM 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-07-21 12:17:16
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [bugs:#2020] Unable to save image locally from HtmlImage object** **Status:** closed **Group:** 2.35.0 **Created:** Thu Jul 11, 2019 04:58 AM UTC by raman palikala **Last Updated:** Sun Jul 21, 2019 12:16 PM UTC **Owner:** RBRi **Attachments:** - [Image_Content_As_JSON.txt](https://sourceforge.net/p/htmlunit/bugs/2020/attachment/Image_Content_As_JSON.txt) (2.0 kB; text/plain) Hi Team, I have just started exploring HtmlUnit. I am using htmlunit v2.21. The problem is I am unable to save image from HtmlImage object. Below is my sample code : HtmlImage image = (HtmlImage) page .getByXPath("//img[@id='captchaDetailImg' and @class='bordered-desktop']") .get(0); File captchaFile = new File(newFilePathOfImage); image.saveAs(captchaFile); Here, in the above code when **image.saveAs(captchaFile);** is executed it is throwing the following error: **java.io.IOException: No image response available (src=)** When I observed the same html page in the browser to identify the cause of the error, I noticed that it is due to the image in the page not being transferred as a file, but the image did come as a response of type application/json. And that json content is of binary and I am not able to see the properties and their values in the json content. Please find the attached which has the response in json for the image. Could you please let me know what I have to do to construct the image from the json content OR is there any way to get the image directly or save it locally from the HtmlImage object in this scenario? Awaiting for your response. Thanks and regards, Raman Palikala. --- 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-07-21 12:16:45
|
Using the latest version (the latest snapshot build) i was able to download the image using this code: try (final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_60)) { WebClientOptions webClientOption = webClient.getOptions(); // ignore js errors and proceed // even in real browsers this page produces millions of warnings webClientOption.setThrowExceptionOnFailingStatusCode(false); String searchUrl = "http://ceojammukashmir.nic.in/NameSearch/main.aspx"; webClient.getPage(searchUrl); // wait to let the (async) js do what has to be done webClient.waitForBackgroundJavaScript(20_000); // looks like the js updates the window content // do not use the outdated page we got by getPage because we have to work with the current content HtmlPage currentPage = (HtmlPage) webClient.getCurrentWindow().getEnclosedPage(); HtmlImage image = (HtmlImage) currentPage.getByXPath("//img[@id='captchaDetailImg' and @class='bordered-desktop']").get(0); // looks promising so far System.out.println(image.asXml()); File captchaFile = new File("C:\\TEMP\\test.jpg"); image.saveAs(captchaFile); // yep there is the file // have fun using HtmlUnit } Hope you get the same results. If you like you can follow the development on https://twitter.com/HtmlUnit. If you have more questions/issues please us github (https://github.com/HtmlUnit/htmlunit) Thanks for using HtmlUnit --- ** [bugs:#2020] Unable to save image locally from HtmlImage object** **Status:** open **Group:** 2.35.0 **Created:** Thu Jul 11, 2019 04:58 AM UTC by raman palikala **Last Updated:** Fri Jul 19, 2019 12:30 PM UTC **Owner:** nobody **Attachments:** - [Image_Content_As_JSON.txt](https://sourceforge.net/p/htmlunit/bugs/2020/attachment/Image_Content_As_JSON.txt) (2.0 kB; text/plain) Hi Team, I have just started exploring HtmlUnit. I am using htmlunit v2.21. The problem is I am unable to save image from HtmlImage object. Below is my sample code : HtmlImage image = (HtmlImage) page .getByXPath("//img[@id='captchaDetailImg' and @class='bordered-desktop']") .get(0); File captchaFile = new File(newFilePathOfImage); image.saveAs(captchaFile); Here, in the above code when **image.saveAs(captchaFile);** is executed it is throwing the following error: **java.io.IOException: No image response available (src=)** When I observed the same html page in the browser to identify the cause of the error, I noticed that it is due to the image in the page not being transferred as a file, but the image did come as a response of type application/json. And that json content is of binary and I am not able to see the properties and their values in the json content. Please find the attached which has the response in json for the image. Could you please let me know what I have to do to construct the image from the json content OR is there any way to get the image directly or save it locally from the HtmlImage object in this scenario? Awaiting for your response. Thanks and regards, Raman Palikala. --- 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-07-11 19:11:18
|
Will have a look at this. --- ** [bugs:#2018] Not Able to Select drop down into input field** **Status:** open **Group:** 2.35.0 **Created:** Tue Jun 25, 2019 11:30 AM UTC by Abhishek Thakur **Last Updated:** Thu Jun 27, 2019 08:01 AM UTC **Owner:** nobody **Attachments:** - [drizly_1.html](https://sourceforge.net/p/htmlunit/bugs/2018/attachment/drizly_1.html) (119.6 kB; text/html) Hi There, I am new to use HTMLUnit and I am working on a POC. There is a website where if you will click on "ENTER A DELIVERY ADDRESS", it will show you a form. When you will start typing, it will make ajax calls to google and suggest you addresses . I am trying to use an address and select the suggested address in this website but I am not able to select the drop down even if I am able to click the first child. My sample code is as below WebClient webClient = new WebClient(browserVersion); WebClientOptions webClientOption = webClient.getOptions(); webClientOption.setCssEnabled(false); webClientOption.setJavaScriptEnabled(true); webClientOption.setUseInsecureSSL(true); webClientOption.setTimeout(30000); webClientOption.setThrowExceptionOnScriptError(false); webClientOption.setThrowExceptionOnFailingStatusCode(false);; webClientOption.setPopupBlockerEnabled(false); webClientOption.setRedirectEnabled(true); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); String searchUrl = "https://drizly.com/cart"; WebRequest request = new WebRequest(new URL(searchUrl)); HtmlPage currentPage = webClient.getPage(request); HtmlElement element = page.getFirstByXPath("/html/body/div[1]/header/div[2]/div/address/p"); page = element.click(); HtmlElement element = page.getFirstByXPath("//*[@id="address_field"]"); try { ((HtmlTextInput) element).click(); ((HtmlTextInput) element).type("457 Hudson Street, New York, NY, USA"); } catch (IOException e) { e.printStackTrace(); } try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } } try { HtmlDivision firstChild = page.getFirstByXPath("/html/body/div[7]/div"); page = firstChild.click(); } catch (IOException e) { e.printStackTrace(); } try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } System.out.println(page.asXml()); I have attached the sample output html file which I am getting after running the above code. Please help me in finding out the issue with the code. Thanking you in advance. Regards, Abhishek Thakur --- 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-07-11 19:05:33
|
WebSocket connetions are initiated from javascript, if you have js enabled, this works (more or less ) as in a real browser. Do you get the same problem if you open the page with an real browser? --- ** [bugs:#2019] Unwanted WebSocket Connection** **Status:** open **Group:** 2.35.0 **Created:** Fri Jul 05, 2019 10:55 PM UTC by Ahsan Kazmi **Last Updated:** Fri Jul 05, 2019 10:55 PM UTC **Owner:** nobody I tried searching for a solution but was unable to find how to prevent connection to a websocket. I only need to read html that is rendered through javascript, and I am able to do that fine. The following is my code: webClient = new WebClient(BrowserVersion.CHROME); webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setJavaScriptEnabled(true); page = webClient.getPage(address); webClient.waitForBackgroundJavaScript(3000); List<DomElement> statusElementList = page.getByXPath("//span[contains(@class, 'state-title')]"); String status = statusElementList.get(0).getFirstChild().toString(); The following is the stacktrace I am seeing: websocket error info WebConsole.java : 422 2019-07-05 22:44:09 [UTC] [HttpClient@1433621164-98] INFO c.g.htmlunit.WebConsole websocket closed. ERROR c.g.h.javascript.host.WebSocket - [trueEDGE] Customer: qa-uss, Device: connect error for url 'wss://192.168.44.202/statusd': run WebSocket.java : 179 java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 400 Bad Request at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at com.gargoylesoftware.htmlunit.javascript.host.WebSocket$1.run(WebSocket.java:175) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591) at java.lang.Thread.run(Thread.java:748) Caused by: org.eclipse.jetty.websocket.api.UpgradeException: 400 Bad Request at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:520) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:459) at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:405) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:297) at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:606) at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1536) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1384) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:170) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:131) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:70) at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:130) at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:116) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:289) at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:149) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128) at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199) ... 3 common frames omitted --- 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. |