lib/calabash-android/steps/navigation_steps.rb in calabash-android-0.5.0.pre1 vs lib/calabash-android/steps/navigation_steps.rb in calabash-android-0.5.0.pre2
- old
+ new
@@ -17,12 +17,12 @@
Then /^I swipe right$/ do
perform_action('swipe', 'right')
end
-Then /^I select "([^\"]*)" from the menu$/ do |text|
- select_options_menu_item(text)
+Then /^I select "([^\"]*)" from the menu$/ do |identifier|
+ select_options_menu_item(identifier)
end
Then /^I select tab number (\d+)$/ do | tab |
touch("android.widget.TabWidget descendant TextView index:#{tab.to_i-1}")
end
@@ -38,9 +38,9 @@
Then /^I scroll up$/ do
scroll_up
end
-Then /^I drag from (\d+):(\d+) to (\d+):(\d+) moving with (\d+) steps$/ do |fromX, fromY, toX, toY, steps|
- perform_action('drag',fromX,toX,fromY,toY,steps)
+Then /^I drag from (\d+):(\d+) to (\d+):(\d+) moving with (\d+) steps$/ do |from_x, from_y, to_x, to_y, steps|
+ perform_action('drag', from_x, to_x, from_y, to_y, steps)
end