Forum: RSpec Webrat and submitting a form using an image

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-10-04 18:09
Webrat doesn't seem to be able to handle the submit of a form through an
image input.

How do you handle that?
49612ba6e616ca3c4c668ad35e3e84ce?d=identicon&s=25 Luke Melia (Guest)
on 2008-10-05 05:18
(Received via mailing list)
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/...

Are you seeing another behavior?

Cheers from NYC,
Luke
--
Luke Melia
luke@lukemelia.com
http://www.lukemelia.com/
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2008-10-05 16:55
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.
This topic is locked and can not be replied to.