features/step_definitions/button_steps.rb in page-object-1.0.3 vs features/step_definitions/button_steps.rb in page-object-1.1.0

- old
+ new

@@ -39,5 +39,10 @@ end Then /^I should see that the button exists$/ do @page.button_id?.should == true end + + +When(/^I get the text for a button that is a "([^"]*)"$/) do |tagname| + @text = @page.button_element(:id => "#{tagname}_button").text +end \ No newline at end of file