Forum: RSpec Cucumber / Webrat clicks_button problem

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.
Fb1a6916e06f221b5b53a6665f9858eb?d=identicon&s=25 Mikel Lindsaar (Guest)
on 2008-10-09 20:09
(Received via mailing list)
Before I dive into the code and fix it, has anyone else worked around
/ found the solution to calling 'clicks_button' when the button is
actually a button and not an input?

ie:

<form ... >

<button type="submit" ....>
Text... / Image here
</button>
</form>

Calling clicks on this doesn't find it as webrat only looks for
input[type=submit].

Mikel
Fb1a6916e06f221b5b53a6665f9858eb?d=identicon&s=25 Mikel Lindsaar (Guest)
on 2008-10-10 10:52
(Received via mailing list)
Never mind, fixed in trunk of Webrat.
This topic is locked and can not be replied to.