On Fri, Feb 20, 2009 at 3:13 PM, James Byrne <li...@ruby-forum.com> wrote: > Given this: > > <form> > > <p> > <input id="submit_commit_client" name="commit" type="submit" > value="Create" /> > </p> > > </form> > > 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: > > click_button("#submit_commit_client") >
Can you use the following or do you need to use an id for other reason? click_button "Create" > Which gives this error: > > Could not find button "#submit_commit_client" (Webrat::NotFoundError) > > /usr/lib64/ruby/gems/1.8/gems/webrat-0.4.1/lib/webrat/core/locators/locator.rb:14:in > `locate!' > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users