Sha256: 7532e2b2fabf35fb15f004b5b1de2126ee751de1051588f81a8afbc2793ba1aa

Contents?: true

Size: 1020 Bytes

Versions: 55

Compression:

Stored size: 1020 Bytes

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
  perform_action('send_key_enter')
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

55 entries across 55 versions & 1 rubygems

Version Path
calabash-android-0.8.0.pre1 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.4.pre1 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.pre3 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.preintentstart5 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.preintentstart4 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.preintentstart3 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.preintentstart2 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.preintentstart1 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.pre2 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.3.pre1 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.2 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.1 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.7.0 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.6.1.pre2 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.6.1.pre1 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.6.0.prelatestcrosswalk lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.6.0 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.6.0.pre4 lib/calabash-android/steps/navigation_steps.rb
calabash-android-0.5.16.pre1 lib/calabash-android/steps/navigation_steps.rb