Sha256: 9337c733f2eb14b5f05f0f0a458ec79702d560bbae3304f059489f7a21dcde3d

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 Bytes

Contents

describe 'device/touch_actions' do
  def swipe_till_text_visible(seen_text)
    start_x = window_size[:width] / 2
    start_y = window_size[:height] / 2
    wait(60) do
      swipe start_x: start_x, start_y: start_y, delta_x: start_x, delta_y: start_y - 100
      text(seen_text).displayed?
    end
  end

  t 'swipe_default_duration' do
    swipe_till_text_visible('views')
    text('views').click
    wait_true do
      text('animation').displayed?
    end
    text('animation').text.must_equal 'Animation'
    swipe_till_text_visible('lists')
  end
end

# TODO: write tests
#
# move_to
# long_press
# press
# release
# tap
# wait
# swipe
# perform
# cancel

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
appium_lib-9.2.0 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-9.1.3 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-9.1.2 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-9.1.1 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-9.1.0 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-9.0.0 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-8.2.1 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-8.2.0 android_tests/lib/android/specs/device/touch_actions.rb
appium_lib-8.1.0 android_tests/lib/android/specs/device/touch_actions.rb