Hi,
There is an option in HtmlUnit, but I'm sorry JWebUnit doesn't provide (yet) a
way to change it. Just take a look in HtmlUnitDialog, there is something like
wc.setThrowExceptionOnScriptError(true).
Please open a feature request (if there is not already one).
Concerning using JWebUnit outside of testing purpose (for example for
crawling), just use directly IJWebUnitDialog interface, or HtmlUnit.
++
Julien
----- Message d'origine ----
De : Oliver Chua <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Mardi, 18 Décembre 2007, 6h09mn 06s
Objet : [JWebUnit-users] How to ignore javascript errors
Hi guys,
I used to use this
HttpUnitOptions.setExceptionsThrownOnScriptError(false);
to ignore javascript errors.
in Jwebunit 1.2
I'm trying to port to Jwebunit 1.4
but the above method is no longer available.
Please don't tell me to call
disableScripting() or setScriptingEnabled(false);
because I need the javascript functionality.
(form is submitted by clicking on a link)
I really need to use 1.4 as
1.2 doesn't support
two buttons with one name.
Also, I don't have control on the HTML produced.
As an aside, I am looking for an API
that does something JWebUnit does
but is not for the context of testing...
Anybody know any?
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
http://mail.yahoo.fr-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users