Post

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

By Rafaela Azevedo Hi guys !!

I am writing examples of swipe and drag on mobile devices with calabash today. Some methods that you can use to test, these drags have the same action as the swipe. (If for some reason the swipe don’t work)

ANDROID:

def swipe_page_to_left performAction(‘swipe’, ‘left’) end

def swipe_page_to_right performAction(‘swipe’, ‘right’) end

def scroll_to_right performAction(‘drag’, 90, 0, 50, 50, 50) end

def scroll_to_left performAction(‘drag’, 0, 90, 50, 50, 50) end

def scroll_to_up performAction(‘drag’, 88, 80, 90, 90, 5) end

def scroll_to_down performAction(‘drag’, 70, 10, 80, 0, 3) end

IOS

Change to down, left or right:

swipe(:up)

If you have some question or suggest just write below !
Thank you :)

Source: http://azevedorafaela.wordpress.com/2014/08/14/swipe-and-drag-calabash-ios-and-android/

Category: Programming, QA, Test and Automation Stuffs, QA, Test and Automation Stuffs, calabash, calabash android, calabash android drag, calabash android swipe, calabash ios swipe, calabash ruby drag, calabash ruby drag android, calabash ruby drag ios, calabash ruby swipe, calabash ruby swipe android, calabash ruby swipe ios, calabash-ios, simulate drag android, simulate drag ios, simulate swipe android, simulate swipe ios

Você também pode querer ler

Comments are off for this post.