Bugs item #777817, was opened at 2003-07-25 16:16 Message generated for change (Settings changed) made by jimweaver You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=777817&group_id=61302
Category: None Group: None >Status: Deleted >Resolution: Out of Date Priority: 8 Submitted By: Jochen Mader (jochenam) Assigned to: Nobody/Anonymous (nobody) Summary: problem with HttpUnit 1.5.3 and <script> Initial Comment: Hi, If a page contains tags to load external JavaScripts files (<script src=...>) AND JavaScript is disabled in HttpUnit (HttpUnitOptions.setScriptingEnabled(false)), then the attempt to set the WorkingForm on that page causes a message: "Attempted to set form to null" because the form cannot be found. I have tried with both jWebUnit 1.1.1 and the current CVS version - 1.1.1 with a little patch for HttpUnitDialog.submit(String) as described on the project page (set resp = wc.getCurrentPage()). I can fix the problem for my test cases - which are few at this moment - by removing the line resp = webClient.getCurrentPage() in HttpUnitDialog.initWebClient() (where the WebClientListener is added). But I am not sure whether this is a good idea - maybe this introduces new bugs which just don't show up in my tests because there are so few test cases? I have to use a new version of HttpUnit because the old one from the jWebUnit distribution does not work with my JavaScripts. And of course I want to simulate users with JavaScript enabled in their browsers or not. Maybe someone can help? ---------------------------------------------------------------------- Comment By: Jim Weaver (jimweaver) Date: 2004-06-11 12:21 Message: Logged In: YES user_id=619947 Related to other js file bug currently open. Long standing problem - may be fixed in release 1.2, may not be. ---------------------------------------------------------------------- Comment By: Jochen Mader (jochenam) Date: 2003-07-25 16:24 Message: Logged In: YES user_id=830567 One more thing I should note: It seems that with JavaScript DISABLED, for each <script> tag we have a call to WebClientListener.responseReceived() at the moment setWorkingForm() is called - but not if JavaScript is ENABLED. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=777817&group_id=61302 ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Jwebunit-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
