Sha256: 8710ad045ca2567b5daafcad641426e1a0080a3af6983c21e9915e78c9ace081

Contents?: true

Size: 1.18 KB

Versions: 90

Compression:

Stored size: 1.18 KB

Contents

Given /^I press the "([^\"]*)" button$/ do |text|
  tap_when_element_exists("android.widget.Button {text CONTAINS[c] '#{text}'}")
end

Then /^I press button number (\d+)$/ do |index|
  tap_when_element_exists("android.widget.Button index:#{index.to_i-1}")
end

Then /^I press image button number (\d+)$/ do |index|
  tap_when_element_exists("android.widget.ImageButton index:#{index.to_i-1}")
end

Then /^I press view with id "([^\"]*)"$/ do |id|
  tap_when_element_exists("* id:'#{id}'")
end

Then /^I press "([^\"]*)"$/ do |identifier|
  tap_when_element_exists("* marked:'#{identifier}'")
end

Then /^I click on screen (\d+)% from the left and (\d+)% from the top$/ do |x, y|
  perform_action('click_on_screen', x, y)
end

Then /^I touch the "([^\"]*)" text$/ do |text|
  tap_when_element_exists("* {text CONTAINS[c] '#{text}'}")
end

Then /^I press list item number (\d+)$/ do |index|
  step_deprecated

  tap_when_element_exists("android.widget.ListView index:0 android.widget.TextView index:#{index.to_i-1}")
end

Then /^I long press list item number (\d+)$/ do |index|
  step_deprecated

  long_press_when_element_exists("android.widget.ListView index:0 android.widget.TextView index:#{index.to_i-1}")
end

Version data entries

90 entries across 90 versions & 1 rubygems

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