Hi everyone,
I am trying using HtmlUnit for parsing and checking a
GoogleCodeSearch's Url, for example
Url = "
http://google.com/codesearch/p?hl=en#BDMVBjMQ9dM/developer/
technicalArticles/jini/javaspaces/HelloWorld.zip|0GBefwhg-XQ/
HelloWorld.java&q=HelloWorld%20lang:java"
But I could not get the content as that is displaying on the Web.
In the data (page.asXml) that HtmlUnit returned, I could not find
where content of file HelloWorld.java is.
This is my code:
final WebClient webClient = new WebClient();
webClient.setJavaScriptEnabled(true);
final HtmlPage page = webClient.getPage(Url);
webClient.waitForBackgroundJavaScriptStartingBefore(10000)
System.out.println(page.asXml);
I think HtmlUnit can not run some JavaScripts on the GoogleCodeSearch
Webpages which use GWT for create scripts.
It is right? Please show me some solution for this situation!
Thanks much!
Regards,
Dai Phan