Hi i have to swipe the bunch of screens and i tried some of the syntax like
scroll("*",:right)
swipe "left", {:query => "*"}
swipe(:left)
But it swipes and leave back the screen to same screen.
Hi i have to swipe the bunch of screens and i tried some of the syntax like
scroll("*",:right)
swipe "left", {:query => "*"}
swipe(:left)
But it swipes and leave back the screen to same screen.
There are several known bugs in Apple's UIAutomation API. Swiping on simulators has been broken on iOS Simulators since iOS 7. 1
You might be able to work around this bug by tightening up your query. Instead of using "*", refine your query to match the scroll view you want to swipe on.
swipe "left", {:query => "UIScrollView marked:'some identifying mark'"}
swipe :right, {:query => "UIScrollView index:0"}
There are many cases where scroll views are embedded in other scroll views. In that case you might need to hunt around for the scroll view that will respond to the swipe.
As an aside, I do not recommend using the "*" wildcard.
No one of the answers here worked for me.
Give a try to the pan method: http://calabashapi.xamarin.com/ios/Calabash/Cucumber/Core.html#pan-instance_method
The GitHub for calabash-ios suggest
GitHub Calabash-iOS Predefines steps