Sha256: 177d486494f54d6ceaab4d2d04e07c78d7cdcc95e9af6415efbaeed644d18256

Contents?: true

Size: 779 Bytes

Versions: 1

Compression:

Stored size: 779 Bytes

Contents

Then /^I long press "([^\"]*)" and select item number (\d+)$/ do |text_to_press, index|
  step_deprecated

  long_press_when_element_exists("* {text CONTAINS '#{text_to_press}'}")

  touch_index = index.to_i - 1
  tap_when_element_exists("com.android.internal.view.menu.ListMenuItemView android.widget.TextView index:#{touch_index}")
end

Then /^I long press "([^\"]*)" and select "([^\"]*)"$/ do |text_to_press, context_text|
  step_deprecated

  long_press_when_element_exists("* {text CONTAINS '#{text_to_press}'}")
  tap_when_element_exists("com.android.internal.view.menu.ListMenuItemView android.widget.TextView marked:'#{context_text}'")
end

Then /^I long press "([^\"]*)"$/ do |text_to_press|
  long_press_when_element_exists("* {text CONTAINS '#{text_to_press}'}")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calabash-android-0.5.0.pre1 lib/calabash-android/steps/context_menu_steps.rb