Sha256: f5ce9f78fb7c52efae36aaeefb1066547a7a34e8f9ea32010710c65b795567cb
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
# rake ios[ios/xcuitest_gestures] describe 'ios/xcuitest_gestures' do def before_first screen.must_equal catalog end def after_last screen.must_equal catalog end t 'before_first' do before_first end t 'tap' do element = text('controls') tap(x: 0, y: 0, element: element) end t 'double_tap' do element = button('Tinted') double_tap(element: element) end t 'scroll' do scroll direction: 'down' text('Style Default').displayed?.must_equal true end t 'swipe' do swipe direction: 'down' swipe direction: 'down' proc { text('Style Default') }.must_raise ::Selenium::WebDriver::Error::NoSuchElementError end t 'drag_from_to_for_duration' do drag_from_to_for_duration from_x: 100, from_y: 100, to_x: 100, to_y: 400 text('Standard Switch').displayed?.must_equal true end t 'pinch' do pinch(scale: 0.5, velocity: -1) end t 'back to top' do back_click end t 'select_picker_wheel' do element = text('pickers') tap(x: 0, y: 0, element: element) e = find_element :name, 'John Appleseed' select_picker_wheel(element: e, order: 'next') e.displayed?.must_be false find_element(:name, 'Serena Auroux').displayed?.must_equal true end t 'after_last' do back_click after_last end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-9.4.3 | ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb |
appium_lib-9.4.2 | ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb |