From: Ahmed A. <asa...@ya...> - 2015-10-23 07:31:53
|
Hi Edson, Please provide your complete java code, so we can check why JavaScript is not triggered. Thanks,Ahmed From: Edson Castoldi <eca...@gm...> To: htm...@li... Sent: Friday, October 23, 2015 5:20 AM Subject: [Htmlunit-user] Checking WebPage generated by a JavaScript Hi, I need to verify the Html content generated by a script javascript but when I get the HtmlPage using the webclient.getPage() method, it is return the fragment code of the script and not the content in the Html format. The attached file contains a fragment of the page returned when I call webclient.getPage().asXml() method.See that there are many "CDATA" sections. It's necessary that them be replaced by the HTML content generated by the script. In this case, I need that the last "CDATA" section be replaced by the correspondent HTML generated content. Att., Edson Castoldi |