I have written a test class to test my web application. I use httpunit 1.7 libraries (httpunit.jar and other libraries like js-1.6R5.jar, etc) When I run the test case, I get all the links which are present on my JSP. But when I try to invoke click() method of any link (WebResponse resp = registerLink.click() , I get the following error: javascript.EcmaError: TypeError: Cannot find function createElement
Could someone tell me what might be cause of this and how to fix it? Thanks.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35232
7
posted
0
Make sure that particular JavaScript function is supported by HttpUnit/Rhino. The HttpUnit documentation has a list somewhere that shows which JavaScript functionalities are or are not supported.