Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JWebUnit: Assertionfailed (missing form)

 
Matt Jonzon
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone, i am using JWebUnit for testing of JSP-pages.

I get an the following error when trying to click a button:

junit.framework.AssertionFailedError: No form present

But the button is no submit button, but rather a button with the onclick attribute.

Do I really have to use a form? This is the test method:

 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you'd post the HTML for the FORM element within which the onclick-wired "button" is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic