Sha256: 8c714ca17fbeb21b1a5c467aa2dcf0ec785ae2295bfe0123f1865f7653aa2992

Contents?: true

Size: 1.02 KB

Versions: 35

Compression:

Stored size: 1.02 KB

Contents

Then /^I go back$/ do
  press_back_button
end

Then /^I press the menu key$/ do
  press_menu_button
end

Then /^I press the enter button$/ do
  press_user_action_button
  # Or, possibly, press_enter_button
end


Then /^I swipe left$/ do
  perform_action('swipe', 'left')
end

Then /^I swipe right$/ do
  perform_action('swipe', 'right')
end

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

# @param - the "tag" associated with the tab, or the text within the tab label
Then /^I select the "([^\"]*)" tab$/ do | tab |
  touch("android.widget.TabWidget descendant TextView {text LIKE[c] '#{tab}'}")
end

Then /^I scroll down$/ do
  scroll_down
end

Then /^I scroll up$/ do
  scroll_up
end

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
   

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
calabash-android-0.9.30 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.29 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.28 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.25 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.24 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.22 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.21 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.20 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.19 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.18 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.17 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.16 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.14 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.12 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.11 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.10 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.9 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.8 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.7 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.9.6 lib/calabash-android/steps/navigation_steps.rb