Sha256: a7124bcc1c5327909d98278196957d95968037a81daae64c7bb808ce5480865e

Contents?: true

Size: 865 Bytes

Versions: 4

Compression:

Stored size: 865 Bytes

Contents

# rake android[common/device_touchaction]
describe 'common/device_touchaction' do
  t 'action_chain' do
    wait do
      e = find_element(:name, 'Accessibility')
      Appium::TouchAction.new.press(element: e, x: 0.5, y: 0.5).release(element: e).perform
    end
    wait { find_element(:name, '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: 0.5, duration: 1.5).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

4 entries across 4 versions & 1 rubygems

Version Path
appium_lib-8.0.2 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-8.0.1 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-8.0.0 android_tests/lib/android/specs/common/device_touchaction.rb
appium_lib-7.0.0 android_tests/lib/android/specs/common/device_touchaction.rb