Hi,
AFAIK, there is at least one JUnit test that ensure it is working. So I suppose
the problem may be different. Do you have quote in your HTML for the type
attribute?
<input type="image" ...../>
Regards,
Julien
----- Message d'origine ----
De : kaushik maitra <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Vendredi, 24 Octobre 2008, 13h47mn 33s
Objet : [JWebUnit-development] submit() method failing for ver 1.5
Hi,
I have an image in my jsp page which does the job of the submit button.
The code snippet is
<input type=image src="/o2images/arrow_continue_photo.gif" alt="Log in"
width="21" height="21"/>
The above tag lies inside a <html:form> tag. When I invoke sumit() method
in 1.5 version I get the error message saying "No submit button found".
I change to the following tag -
<input type="submit" value="Go"> and invoke the method
clickButtonWithText("Go"); as the alternate solution. This works.
However could anyone throw some light on the above as to why it is happening
and what can be done to fix it. I really do not want to rewrite my jsps to
remove the image and put in-place the button tag.
Regards, Kaushik.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development