Hi,
My webtest is still terminating even when I have javascript error
switched off:
I am using the
<option name="ThrowExceptionOnScriptError" value="false"/>
In the config section and still get the following excerpt of the stack
trace.
[clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
clickLink "Navigate to Customer Service screen" (21/28)
[clickLink] INFO (com.canoo.webtest.engine.Configuration$2) - Caught
script exception
Looking at the source code for com.canoo.webtest.engine.Configuration I
see the following comment.
// catcher for JS background errors (as long as HtmlUnit
doesn't provide a better solution to handle this)
final Thread mainThread = Thread.currentThread();
final JavaScriptEngine myEngine = new
JavaScriptEngine(webClient) {
private static final long serialVersionUID =
3410982366939766502L;
protected void reportJavaScriptException(final
ScriptException scriptException) {
if (Thread.currentThread() != mainThread) {
fContext.setBackgroundJSError(scriptException);
}
super.reportJavaScriptException(scriptException);
}
};
Does this mean that I am unlikely to be able to stop the javascript
errors?
Thanks
_____________
The information contained in this message is proprietary and/or confidential.
If you are not the intended recipient, please: (i) delete the message and all
copies; (ii) do not disclose, distribute or use the message in any manner; and
(iii) notify the sender immediately. In addition, please be aware that any
message addressed to our domain is subject to archiving and review by persons
other than the intended recipient. Thank you.
_____________