[rspec-users] specifying which button webrat should press

James Byrne lists at ruby-forum.com
Fri Feb 20 15:13:16 EST 2009

Given this:


   <input id="submit_commit_client" name="commit" type="submit" 
value="Create" />


If I want webrat to select on the ccs id (#submit_commit_client) rather 
than the value (Create) how do I pass this to click_button?

I have tried this:


Which gives this error:

Could not find button "#submit_commit_client" (Webrat::NotFoundError)

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list