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