in forms with input type="image" the Webtest-methods clickButton and 
clickElement override the value with mouse coordinates
---------------------------------------------------------------------------------------------------------------------------

         Key: WT-473
         URL: http://webtest-community.canoo.com/jira/browse/WT-473
     Project: WebTest
        Type: Bug

 Environment: Using Grails 1.0.4 with webtest-plugin 0.5.1. Grails run webtest 
says: "Canoo Webtest: R_1708"
Windows XP SP3, Firefox 3.0.4, Groovy 1.5.6 , java 1.6.0_07
    Reporter: Daniel Lawniczak


I am working on a grails app which has a form and as an example the following 
"button" (there are many other buttons) to submit the form:

<input type="image" src="someSrc" name="_action_removeOrderItem" value="3" 
id="removeItem3" />

In my Grails-Controller I am using params._action_removeOrderItem (which has 
the value "3") to check which button has been pressed and therefore which Item 
has to be removed. This works perfectly when I do a test by myself in firefox. 
BUT it does NOT work in my Webtest where I use the following method:

clickButton(htmlId:'removeItem3')

The Problem is that the submitted  "value" is not "3" as in my hand-test but 
instead "["y":"0", "x":"0"]". 
I did a "println params._action_removeOrderItem" in the handling controller to 
see the submitted value. 
The same "override" happens when I use clickElement(...).

Is this a bug of Webtest or should my hand-test fail as well?
Thanks and cheers, Daniel

PS The Webtest-method "clickButton" worked fine when I used input 
type="submit", but I would like to have an image instead.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to