features/step_definitions/button_steps.rb in page-object-0.4.1 vs features/step_definitions/button_steps.rb in page-object-0.4.2
- old
+ new
@@ -12,9 +12,13 @@
Then /^I should be able to click the button$/ do
@page.send "button_#{@how}"
end
+Then /^I should be able to click the real button$/ do
+ @page.send "btn_#{@how}"
+end
+
When /^I find a button while the script is executing$/ do
@button = @page.button_element(:id => 'button_id')
end
Then /^I should be able to click the button element$/ do