Mikel Lindsaar
2008-Oct-09 18:07 UTC
[rspec-users] Cucumber / Webrat clicks_button problem
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 -- http://lindsaar.net/ Rails, RSpec and Life blog....
Mikel Lindsaar
2008-Oct-10 08:50 UTC
[rspec-users] Cucumber / Webrat clicks_button problem
Never mind, fixed in trunk of Webrat. On Fri, Oct 10, 2008 at 5:07 AM, Mikel Lindsaar <raasdnil at gmail.com> wrote:> 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 > > > -- > http://lindsaar.net/ > Rails, RSpec and Life blog.... >-- http://lindsaar.net/ Rails, RSpec and Life blog....