lib/calabash-android/steps/navigation_steps.rb in calabash-android-0.2.11 vs lib/calabash-android/steps/navigation_steps.rb in calabash-android-0.2.12
- old
+ new
@@ -21,12 +21,21 @@
Then /^I select "([^\"]*)" from the menu$/ do |item|
performAction('select_from_menu', item)
end
+Then /^I select tab number (\d+)$/ do | tab |
+ performAction('select_tab', tab)
+end
+
+# @param - the "tag" associated with the tab, or the text within the tab label
+Then /^I select the "([^\"]*)" tab$/ do | tab |
+ performAction('select_tab', tab)
+end
+
Then /^I scroll down$/ do
performAction('scroll_down')
end
Then /^I scroll up$/ do
performAction('scroll_up')
-end
+end
\ No newline at end of file