A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
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 test method:
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)
how to disable onclick event
Action set for submit button
JWebunit: How to simulate clicking the "Back" button?
choose the servlet a form should do
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-2015