our struts application is using many javascript constructs. Unfortunately not all javascript features are implemented yet in httpunit (i know that).
In a site where a link has the onClick-event set to a javascript-function, the click() method returns the false site (response). Although I have set setExceptionsThrownOnScriptError to false the execution of the performEvent()-method in the JavaScript class is ruptured while calling the javascript-function.
I suggest in the exceptionhandling of the performEventMethod not return false but
(!isThrowExceptionsOnError()). My tests are now working. If this the right solution i send a (mini)patch.
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello httpunit developers,
our struts application is using many javascript constructs. Unfortunately not all javascript features are implemented yet in httpunit (i know that).
In a site where a link has the onClick-event set to a javascript-function, the click() method returns the false site (response). Although I have set setExceptionsThrownOnScriptError to false the execution of the performEvent()-method in the JavaScript class is ruptured while calling the javascript-function.
I suggest in the exceptionhandling of the performEventMethod not return false but
(!isThrowExceptionsOnError()). My tests are now working. If this the right solution i send a (mini)patch.
Jens