Sha256: e6e6d9a9f96bc55600ec9bb39f9a99ed198b6d2cdff0482380ab08b46162b868
Contents?: true
Size: 839 Bytes
Versions: 6
Compression:
Stored size: 839 Bytes
Contents
# rake android[common/device_touchaction] describe 'common/device_touchaction' do t 'action_chain' do wait do e = text('Accessibility') Appium::TouchAction.new.press(element: e, x: 0.5, y: 0.5).release(element: e).perform 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, delta_x: 0.75, delta_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
6 entries across 6 versions & 1 rubygems