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.