Sha256: c03318ba5673f002b20cf6cb29cd8f982cc7dc77367e98e6f7b8ac66057c80be

Contents?: true

Size: 894 Bytes

Versions: 10

Compression:

Stored size: 894 Bytes

Contents

# rake android[common/device_touchaction]
describe 'common/device_touchaction' do
  t 'action_chain' do
    wait do
      e = text('Accessibility')
      touch_action = Appium::TouchAction.new.press(element: e, x: 0.5, y: 0.5).release(element: e)
      touch_action.perform
      touch_action.actions.must_equal []
    end
    wait { text('Custom View') }
    back
    wait { text_exact 'NFC' }
  end

  t 'swipe' do
    wait { Appium::TouchAction.new.swipe(start_x: 0.75, start_y: 0.25, end_x: 0.75, end_y: 50).perform }
    wait { !exists { text_exact 'NFC' } }
    wait { text_exact 'Bouncing Balls' }
    back
    wait { text_exact 'NFC' }
  end

  t 'pinch & zoom' do
    wait { text_exact 'NFC' }
    wait { text_exact('Graphics').click }
    wait { text('BitmapMesh').click }
    wait do
      zoom 200
      pinch 75
    end
    2.times { back }
    wait { text_exact 'NFC' }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appium_lib-9.4.5 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.4.4 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.4.3 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.4.2 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.4.1 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.4.0 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.3.8 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.3.7 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.3.6 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-9.3.5 android_tests/lib/android/specs/common/device_touchaction.rb