features/step_definitions/button_steps.rb in page-object-0.5.1 vs features/step_definitions/button_steps.rb in page-object-0.5.2
- old
+ new
@@ -1,8 +1,20 @@
When /^I click the button$/ do
@page.button_id
end
+When /^I click the button with type image$/ do
+ @page.button_image_id
+end
+
+When /^I click the image button using src$/ do
+ @page.button_image_src
+end
+
+When /^I click the image button using alt$/ do
+ @page.button_image_alt
+end
+
When /^I search for the button by "([^\"]*)"$/ do |how|
@how = how
end
When /^I search for the button by "([^"]*)" and "([^"]*)"$/ do |param1, param2|