From: Ahmed A. <asa...@ya...> - 2015-01-02 10:27:26
|
Hi Akshay, You don't need to cross-post to different mailing lists. Can you be more specified? I tried, and HtmlUnit 2.15 gives correct SVG compared to real browser. For example: final WebClient webClient = new WebClient(BrowserVersion.CHROME); final HtmlPage page = webClient.getPage("http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_selectableLegend.html"); System.out.println(page.asXml()); gives the First SVG correctly: <svg overflow="hidden" width="300" height="200"> <defs/> <rect fill="rgb(255, 255, 255)" fill-opacity="1" stroke="none" stroke-opacity="0" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="0" y="0" width="301" height="201" ry="0" rx="0" fill-rule="evenodd"/> <rect fill="rgb(255, 255, 255)" fill-opacity="1" stroke="none" stroke-opacity="0" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1276" y="14.5" width="2" height="155.5" ry="0" rx="0" fill-rule="evenodd"/> <clipPath id="gfx_clip1"> <rect x="1277" y="15.5" width="0" height="153.5"/> </clipPath> <g shape-rendering="crispEdges" clip-path="url(#gfx_clip1)"> <g> <g> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="149.07142857142858" width="403.875" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="127.14285714285714" width="807.75" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="105.21428571428572" width="1211.625" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="83.28571428571429" width="1615.5" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="61.35714285714286" width="605.8125" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="39.428571428571445" width="1009.6875" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(127, 149, 153)" fill-opacity="1" stroke="rgb(127, 149, 153)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="17.5" width="1413.5625" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> </g> <g> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="149.07142857142858" width="201.9375" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="127.14285714285714" width="605.8125" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="105.21428571428572" width="1009.6875" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="83.28571428571429" width="1413.5625" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="61.35714285714286" width="403.875" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="39.428571428571445" width="807.75" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <rect fill="rgb(69, 184, 204)" fill-opacity="1" stroke="rgb(69, 184, 204)" stroke-opacity="1" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x="1277" y="17.5" width="1211.625" height="17.928571428571427" ry="0" rx="0" fill-rule="evenodd" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> </g> </g> </g> <g shape-rendering="crispEdges"> <line fill="none" fill-opacity="0" stroke="rgb(51, 51, 51)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="169" x2="-338.5" y2="169" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="169" x2="1277" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1075.0625" y1="169" x2="1075.0625" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="873.125" y1="169" x2="873.125" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="671.1875" y1="169" x2="671.1875" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="469.25" y1="169" x2="469.25" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="267.3125" y1="169" x2="267.3125" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="65.375" y1="169" x2="65.375" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="-136.5625" y1="169" x2="-136.5625" y2="175" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> </g> <g shape-rendering="crispEdges"> <line fill="none" fill-opacity="0" stroke="rgb(51, 51, 51)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="169" x2="1277" y2="15.5" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="158.03571428571428" x2="1271" y2="158.03571428571428" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="136.10714285714286" x2="1271" y2="136.10714285714286" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="114.17857142857143" x2="1271" y2="114.17857142857143" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="92.25" x2="1271" y2="92.25" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="70.32142857142858" x2="1271" y2="70.32142857142858" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="48.39285714285715" x2="1271" y2="48.39285714285715" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> <line fill="none" fill-opacity="0" stroke="rgb(102, 102, 102)" stroke-opacity="1" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4" x1="1277" y1="26.464285714285722" x2="1271" y2="26.464285714285722" stroke-dasharray="none" dojoGfxStrokeStyle="solid"/> </g> </svg> From: Akshay Shekokar <aks...@pe...> To: "htm...@li..." <htm...@li...> Sent: Friday, January 2, 2015 9:54 AM Subject: [Htmlunit-user] Problem Working with Dojo Charts <!--#yiv3618991150 _filtered #yiv3618991150 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv3618991150 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv3618991150 #yiv3618991150 p.yiv3618991150MsoNormal, #yiv3618991150 li.yiv3618991150MsoNormal, #yiv3618991150 div.yiv3618991150MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv3618991150 a:link, #yiv3618991150 span.yiv3618991150MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv3618991150 a:visited, #yiv3618991150 span.yiv3618991150MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv3618991150 p.yiv3618991150MsoPlainText, #yiv3618991150 li.yiv3618991150MsoPlainText, #yiv3618991150 div.yiv3618991150MsoPlainText {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv3618991150 span.yiv3618991150EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv3618991150 span.yiv3618991150PlainTextChar {font-family:"Calibri", sans-serif;}#yiv3618991150 .yiv3618991150MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered #yiv3618991150 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv3618991150 div.yiv3618991150WordSection1 {}-->Hi, I have studied the API of HtmlUnit 2.15, and tried it over some webpages. It is very useful as it provide the source of rendered web pages. However, at some point I noticed that, it is not giving correct SVG for webpage. I have tried it with following link. http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/charting/tests/test_selectableLegend.html It includes the charts generated from Dojo. But HtmlUnit is not giving me the correct SVG for these harts. Regards, Akshay Shekokar DISCLAIMER==========This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |