Fernando Perez
2008-Oct-04 16:09 UTC
[rspec-users] Webrat and submitting a form using an image
Webrat doesn''t seem to be able to handle the submit of a form through an image input. How do you handle that? -- Posted via http://www.ruby-forum.com/.
Luke Melia
2008-Oct-05 03:05 UTC
[rspec-users] Webrat and submitting a form using an image
On Oct 4, 2008, at 12:09 PM, Fernando Perez wrote:> Webrat doesn''t seem to be able to handle the submit of a form > through an > image input.Fernando, this should work, at least in trunk webrat. For example, see the specs near: http://github.com/brynary/webrat/tree/master/spec/api/clicks_button_spec.rb#L337 Are you seeing another behavior? Cheers from NYC, Luke -- Luke Melia luke at lukemelia.com http://www.lukemelia.com/
Fernando Perez
2008-Oct-05 14:55 UTC
[rspec-users] Webrat and submitting a form using an image
Thank you very much for the link! Actually my problem was that I have 2 buttons on the page, and the only way to distinguish them is to use the alt tag which I wasn''t currently using. Now everything works perfectly. -- Posted via http://www.ruby-forum.com/.