Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
JWebUnit: Assertionfailed (missing form)
Joined: May 22, 2007
May 22, 2007 01:04:00
Hello everyone, i am using JWebUnit for
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
this.setFormElement("elem1", "abc123"); this.setFormElement("elem2", "750000"); this.setFormElement("elem3", "4"); this.clickButton("button1"); assertValid("test1.jsp"); this.clickLink("link1"); assertValid("test2.jsp"); assertElementPresent("button2"); this.clickButton("button2");
Joined: Jan 23, 2002
May 22, 2007 11:06:00
It would help if you'd post the HTML for the FORM element within which the onclick-wired "button" is.
Effective Unit Testing
I agree. Here's the link:
subject: JWebUnit: Assertionfailed (missing form)
Action set for submit button
how to disable onclick event
choose the servlet a form should do
JWebunit: How to simulate clicking the "Back" button?
cannot get stuff to repaint - please help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014