Feature Requests item #2643447, was opened at 2009-02-26 23:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=2643447&group_id=61302
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface Improvements (example) Group: None Status: Open Priority: 5 Private: No Submitted By: Till Kahle (tkahle) Assigned to: Nobody/Anonymous (nobody) Summary: Please provide access to setThrowExceptionOnScriptError Initial Comment: It would be very handy to be able to set: setThrowExceptionOnScriptError( false ); This is MSIE and Firefox default behaviour and unfortunately a lot of sites out there do produce some JS errors but still need to be tested. At least for HtmlUnit the implementation would be straightforward: ----- HtmlUnitTestingEngineImpl.java: private boolean throwExceptionOnScriptError = true; /* (non-Javadoc) * @see net.sourceforge.jwebunit.api.ITestingEngine#setThrowExceptionOnScriptError(boolean) */ public void setThrowExceptionOnScriptError(boolean value) { throwExceptionOnScriptError = value; if (wc != null) { wc.setThrowExceptionOnScriptError(value); } } ... down in initWebClient(): replace wc.setThrowExceptionOnScriptError(true); with wc.setThrowExceptionOnScriptError( throwExceptionOnScriptError ); ----- ITestingEngine.java: /** set to false if you don't want an exceptions when a javascript error occurs. * has no effect when setScriptingEnabled( false ) is set. * Default value is true. */ public void setThrowExceptionOnScriptError(boolean value); ------ in WebTester.java /** set to false if you don't want an exceptions when a javascript error occurs. * has no effect when setScriptingEnabled( false ) is set. * Default value is true. */ public void setThrowExceptionOnScriptError(boolean value) { getTestingEngine().setThrowExceptionOnScriptError(value); } ----- the thing I know nothing about is the selenium implementation... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=2643447&group_id=61302 ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ JWebUnit-development mailing list JWebUnit-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-development