From: 赵芮元 <zry...@16...> - 2013-12-17 10:43:12
|
Hi, When we use the function webClient.getPage("http://www.google.com") for example, we get the html page of Google. Numbers of javascripts codes are embeded in it. Some of the js codes are embeded directly in the html page while some of them are in the form like this <script src="http://su.bdimg.com/static/superpage/js/sbase_3963a90b.js"></script> which needs further request for the source code of it. The "getPage" do not do this job. But in normal browsers fetch all the javascrips and execute them. Then my question is, how to extract all these javascript files to my file system in a web page such as "www.google.com" by using htmlunit? Thanks a lot! Yours, Zhao Ruiyuan |