Bugs item #1058346, was opened at 2004-11-01 20:37
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1058346&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Core API
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Judy Spengeman (spengie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Input type="image" - button not found
Initial Comment:
I have the following code in my jsp - very similar to the
one closed defect #1049592:
<FORM method="POST" action="thankyou.do"
name="form1">
<BR>
<TABLE>
<TR>
<TD width="56"><INPUT type="image"
src="/Shopping/iagree.gif" id= "agree" name="agree"
border="0"></TD>
</TR>
</TABLE>
</FORM>
As instructed in this posting, I used the clickButton
("agree") however am getting the following error:
junit.framework.AssertionFailedError: Button [agree] not
found.
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue
(Assert.java:20)
at junit.framework.Assert.assertNotNull
(Assert.java:220)
at
net.sourceforge.jwebunit.WebTester.assertButtonPresent
(WebTester.java:580)
at
net.sourceforge.jwebunit.WebTester.clickButton
(WebTester.java:826)
at
net.sourceforge.jwebunit.WebTestCase.clickButton
(WebTestCase.java:324)
at
org.kp.tests.functional.web.MemberAddOnTest.testCalifor
niaAd
dOn(MemberAddOnTest.java:68)
at java.lang.reflect.Method.invoke(Native
Method)
at junit.framework.TestCase.runTest
(TestCase.java:154)
at junit.framework.TestCase.runBare
(TestCase.java:127)
at junit.framework.TestResult$1.protect
(TestResult.java:106)
at junit.framework.TestResult.runProtected
(TestResult.java:124)
at junit.framework.TestResult.run
(TestResult.java:109)
at junit.framework.TestCase.run
(TestCase.java:118)
at junit.framework.TestSuite.runTest
(TestSuite.java:208)
at junit.framework.TestSuite.run
(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
Test
s(RemoteTestRunner.java:392)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:276)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.mai
n
(RemoteTestRunner.java:167)
Please help! Thanks so much!
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2006-10-13 14:06
Message:
Logged In: YES
user_id=1235926
Please look at this feature request for a possible solution:
https://sourceforge.net/tracker/index.php?func=detail&aid=1568543&group_id=61302&atid=497985
----------------------------------------------------------------------
Comment By: bandaru (bandaru)
Date: 2006-10-13 13:00
Message:
Logged In: YES
user_id=1619755
Hi,
<INPUT type="image"
src="/Shopping/iagree.gif" id= "agree" name="agree"
border="0">
Try this code..since the input type is image not a button,
so try this method clickLinkWithImage("iagree.gif") instead
of clickButton("agree");
cheers...
Bandaru
----------------------------------------------------------------------
Comment By: Deep Blue (deep_deep_blue1)
Date: 2005-06-16 05:20
Message:
Logged In: YES
user_id=1297656
If you use rather than name attribute for the input field,
it actually works. What I mean is:
<INPUT type="image" src="/Shopping/iagree.gif" id= "agree"
border="0">
if input field is defined as above,
clickButton("agree");
clicks the button.
Cheers....
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1058346&group_id=61302
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development