[canoo] [appfuse] ERROR [main] Step.handleUnexpectedException(370) | Cannot
andle unexpected exception in step ClickButton at C:\Source\appfuse-jsf\test\we
\login.xml:6: with (label="Login", stepId="Click the submit button", stepType=
clickbutton")
[canoo] java.lang.RuntimeException: Script 'function clear_editUser() {
[canoo] var f = document.forms['editUser'];
[canoo] f.elements['editUser:_link_hidden_'].value=null;
[canoo] f.target='_self';
[canoo] }
[canoo] clear_editUser();
[canoo] //' failed: java.lang.NullPointerException
[canoo] at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine
handleScriptException(JavaScript.java:199)
[canoo] at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine
executeScript(JavaScript.java:136)
[canoo] at com.meterware.httpunit.scripting.ScriptableDelegate.runScript
It looks like it's bombing on the generated clear_editUser() function. If I do a view source on my page, my guess is that the call to get the form is failing b/c the JavaScript is above the </form> - rather than below it.
Has anyone been successful in using tools like Canoo or jWebUnit to test their JSF apps?
Thanks,
Matt

