Hi,

I would add option (4): provide information to allow HtmlUnit to support
the piece of JS that causes problem. This may take a bit time, but as
long as nobody reports a problem, it will never get fixed. On the other
side, reported errors allow to improve the js support and HtmlUnit-2.2
will soon bring a lot of improvements.

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Rinkesh Bansal wrote:
> Hi David,
> 
> There are 3 solutions to your problem.  Listing them all with pros and cons:
> 
> 1. Use <option name="ThrowExceptionOnScriptError" value="false"/>
> All the javascript errors will be suppressed. Execution   will not halt
> because of javascript errors, but page execution halts whenever it hits any
> javascript errors. This will be applicable to complete script.
> 
> 2. use ignoreForeignJSErrors
> This ignores the javascript errors on the visited page if host is different
> from the current page
> 
> 3. <enableJavaScript enable="false" />
> This will not call javascript at all.  This could be used inside steps and
> at your will for specific part of your code.
> 
> Based on your requirement you can use anyone of them.  We have used all the
> 3 options in our automation.
> 
> Thanks & Regards,
> Rinkesh Bansal | Team Lead | Persistent Systems Ltd
> [EMAIL PROTECTED]  | Cell: +91 93261 76376 | Tel: +91 (20)
> 3023 6792
> Innovation in software product design, development and delivery-
> www.persistentsys.com
> 
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, 23 July 2008 8:07 AM
> To: [EMAIL PROTECTED]
> Subject: [Webtest] VerifyLinks
> 
> 
> I have a site that I am testing with the following: 
> 
> <verifyLinks depth="11" onsiteonly="true" excludes=".*js.*"/> 
> 
> I want to test 11 levels deep and ignore any javascripts files. I'm still 
> receiving errors for the following: 
> 
> http://127.0.0.1:8080/js/prototype/dragdrop.js#600 
> 
> I thought it would skip over this file since i didn't want it looked 
> after. 
> 
> Also, does anyone have good examples of using reportLinks and ReportSite? 
> Not quite sure the difference between the 2 except that reportSite appears 
> to work if you provide the sub element and reportLinks just seems to 
> short-circuit to true.
> 
> 
> 
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the 
> property of Persistent Systems Ltd. It is intended only for the use of the 
> individual or entity to which it is addressed. If you are not the intended 
> recipient, you are not authorized to read, retain, copy, print, distribute or 
> use this message. If you have received this communication in error, please 
> notify the sender and delete all copies of this message. Persistent Systems 
> Ltd. does not accept any liability for virus infected mails.
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 

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

Reply via email to