File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 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