Friday, March 2, 2012

Re: HtmlUnit not running GWT js - onInjectionDone

I have noticed these err messages as well, when trying to test a GWT application under HTMLUnit.

On Wednesday, November 9, 2011 11:53:36 AM UTC-8, MH wrote:
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!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NRvDy99AgsIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment