HtmlUnit not running GWT js - onInjectionDone

231 views
Skip to first unread message

MH

unread,
Nov 9, 2011, 2:53:36 PM11/9/11
to Google Web Toolkit
I'm trying to use htmlunit as recommended to return ?
_escaped_fragment_ queries by Google's crawler

I ask htmlunit to load my html page which contains a GWT program and
call waitForBackgroundJavaScript().

However the page then returned by .asXml() has not got any GWT
components. The only processing that has occurred is the insertion of
the following:

<script defer="defer">
//<![CDATA[
<my gwt module name>.onInjectionDone('<my gwt module name>')
//]]>
</script>

I don't know if it's relevant but htmlunit output these cryptic error
messages:

com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[Automation server can't create object
for 'ChromeTab.ChromeFrame'.] sourceName=[http://127.0.0.1:8888/
com.procyor.Procyor/com.procyor.Procyor.nocache.js] line=[16]
lineSource=[null] lineOffset=[0]

com.gargoylesoftware.htmlunit.html.SimpleHTMLParserListener error
SEVERE: Empty document. (http://gaeHack_about/blank 1:6)

Any help appreciated!

Don Simon

unread,
Mar 2, 2012, 11:58:47 AM3/2/12
to google-we...@googlegroups.com
I have noticed these err messages as well, when trying to test a GWT application under HTMLUnit.
Reply all
Reply to author
Forward
0 new messages