Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Don't get me started about those stupid
subject: JWebUnit: Assertionfailed (missing form)
Action set for submit button
JWebunit: How to simulate clicking the "Back" button?
cannot get stuff to repaint - please help
choose the servlet a form should do
how to disable onclick event
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013