Hi,

you can't disable the error ;-)
but you can disable the output on the console. Just edit lib/log4j.properties and configure the loggers as you want.

Cheers,
Marc.
--
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com


On 11/11/2010 06:17 PM, Josep García wrote:
How can I disable this error?

ERROR (com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter) -
runtimeError: message=[The data necessary to complete this op
eration is not yet available.] sourceName=[http ...
/shadowbox/shadowbox.js] line=[8] lineS
ource=[null] lineOffset=[0]

I tried setting ThrowExceptionOnScriptError to false in my config.xml
file, without luck:

<config
     host="${host}"
     port="${port}"
     protocol="http"
     basepath="${basepath}"
     saveresponse="true"
     haltonfailure="${haltonfailure}"
     haltonerror="${haltonerror}"
     resultpath="${resultpath}"
     resultfile="web-tests-result.xml"
     browser="InternetExplorer8"
     summary="true">
<header name="Accept-Language" value="${user.language}"/>
<option name="ThrowExceptionOnScriptError" value="false"/>
<option name="ThrowExceptionOnFailingStatusCode" value="false"/>
</config>

Josep



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to