[Webtest] Exception Handling for JavaScript Error

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Fri, 25 May 2007 10:27:44 +0200


seems to be related to missing support for plugins or mimeTypes
properties on the Navigator js object. Please open issue for that by

To ignore js errors you can use <option
name="ThrowExceptionOnScriptError" value="false">. See

Otherwise you can do it within your steps with
step.context.webClient.throwExceptionOnScriptError = false

This second option can be used to reactivate throwExceptionOnScriptError
once the problematic page has been handled to be sure to detect other JS


Stephan Wiese wrote:
> Hi,
> I'm trying to run a Webtest on a page with Google Adsense. Every thing
> runs fine besides parsing the JavaScript from Google.
> ------------
> Cannot read property "length" from undefined
> (http://pagead2.googlesyndication.com/pagead/show_ads.js#24) Source code:
> ------------
> As far I know has Google implement his script in a way, that it runs not
> separate.
> Now I' m looking for a way to ignore this error in the Reports.
> Are there suggestions how I can handle this under webtest?
> Thanks
> Stephan

Blog: http://mguillem.wordpress.com