From: Satyanarayana K <kri...@ya...> - 2013-12-02 13:15:28
|
Thanks, Ahmed. - Satya On Monday, December 2, 2013 12:04 PM, Ahmed Ashour <asa...@ya...> wrote: Hi, 1. I agree with you, disabling JavaScript shouldn't be recommended, however sometimes simple scraping is needed, without JS functionality. 2. Yes, window.postMessage() is supported. 3. JS engine is Rhino, which I think is no more related to FF support, but focuses more on the JS standard, its history is in [1]. Hope that helps, Ahmed [1] https://developer.mozilla.org/en-US/docs/Rhino/History ________________________________ From: Satyanarayana K <kri...@ya...> To: "htm...@li..." <htm...@li...> Sent: Saturday, November 30, 2013 4:45 PM Subject: [Htmlunit-user] HtmlUnit Support for JavaScript Hi, I am aware that HtmlUnit is perhaps the only open-source Library for HTML Parsing (Java or Non-Java) that provides native support for javaScript execution. However, I wish to highlight certain aspects for discussion / my own clarification. This posting would perhaps be best addressed by the HtmlUnit Development Team: 1. I am somewhat confused by a response that is often posted against some of the issues reported - the response that says the problem or issue would be solved by setting WebClient - javaScriptEnabled property to false. My question is: a. If the page content is driven by javaScript, how does setting WebClient - javaScriptEnabled property to false help or solve the problem? b. If the page content is NOT driven by javaScript, why should the WebClient - javaScriptEnabled property setting matter at all? 2. I have experienced frequent difficulties in loading javaScript-driven pages, esp those that involved cross-domain-messaging. The expected procedure for reporting javaScript bugs (isolating minimal test case) appears very complex to me as I have very little exposure to or experience with javaScript. I have been able to identify that the issues are traceable to cross-domain-messaging. I would like to know, quite simply: Does HtmlUnit execute cross-domain-messaging calls? This cross-domain-messaging appears to be getting pervasive, a feature that deserves to be supported by HtmlUnit if not already supported. 3. In the documentation of Selenium WebDriver, I have seen that the javaScript engine used by HtmlUnit is the one that was used by FireFox version 3.6 or thereabouts (The default instantiation of HtmlUnitDriver under Selenium is without javaScript enabled). Today FireFox is in version 24 or so. It appears the javaScript engine used by HtmlUnit is obsolete technology. Is this the reason for the cross-domain-messaging problems? I use HtmlUnit in web-scraping applications. The above issues happen to be critical for such applications. Thanks for your time, Satya ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |