Hi Ruchika, > I took the latest snapshot of htmlUnit2.4 and interestingly found that > almost all of my DOM and yui errors disappeared but the one, which is > still there.
good news > I am using commons-validator and in my vaildate.js, I have this > validateEL javacript function which validates the expressions. This > function is used in my jsp which is my 5th screen, but this function is > included in all my jsp. Now when I invoke my first login page using > canoo it fails giving exception :- > > "JavaScript error loading page http://localhost:8888/chairside/: Wrapped > com.gargoylesoftware.htmlunit.ScriptException: 3" > > I investigated and found that canoo fails in this function on the > following line :- > > elValue = elValue.replace(/\${/g, ''); > > and if I comment this line rest of the code which is using replace > function runs properly with canoo.I am not sure whether its a problem > with '$' as otherwise replace function works fine. > > Can someone pl look in to my problem and suggest any solution? this seems to be a problem in RegExp support. For info, due to bugs in Rhino's RegExp support we try to bypass it when we can and use java based RegExp support, nevertheless I wouldn't say that it is perfect, particularly due to small differences between JavaScript and Java syntax for regular expressions. As you seem to have identified the root cause of the problem, can you provide a complete HTML page illustrating the problem. Particularly, what is the original value of your elValue variable when you call replace on it? Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

