--
You received this message because you are subscribed to the Google Groups "calabash-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calabash-andro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# At the top of your features file
include Calabash::Android::Gestures
#...
Given(/^.....$/) do
gesture = Gesture.tap(time: 0.5, release: false).merge(Gesture.tap(wait: 0.5))
gesture.gestures.first.touches.first.query_string = "* id:'first_element*"
gesture.gestures.first.touches[1].query_string = "* id:'second_element'"
execute_gesture(gesture)
end
pan("* id:'element'", :right)
pan("button", :right, from: {x: 0, y: 50}, to: {x: 100, y:50}) # Swipe from absolute center left to absolute center right
Hi,
How can you swipe a button? Find out the view and the class of that object using calabash-android console or uiautomatorviewer, then you can perform the gesture.
Thanks,
PV