danqa
April 27, 2016, 5:12pm
1
I have the following code:
action = Appium::TouchAction.new
action.swipe :start_x => 300, :start_y => 300, :end_x => 1, :end_y => 300, :touchCount => 1, :duration => 1500
action.perform
This works in the iOS simulator for the last version of appium 1.4.x. But in 1.5 and above it is no longer working? Is this a known issue.? If not, would anyone have an idea how to work around this to swipe left issue?
Thanks in advance.
Arfan1
April 28, 2016, 4:33pm
2
Hi Danqa,
Yes, this issue does occur for Appium 1.5.
Please see here my reply!
Hi,
Recently I’ve started to move to new appium server , but I’ve some issues with already implemented TouchActions gestures , in Appium 1.4.16 + java_client 3.4.1 the code I’ve works , but while I’m running it against Appium 1.5.1 nothing happens , no execption being thrown , just nothing correct happens (the swipe direction is wrong)
Has anyone tackled with the issue ?
Thanks
danqa
April 28, 2016, 6:21pm
3
Hi @Arfan1
So I try the work around you showed:
action = Appium::TouchAction.new
action.press({:x => 200, :y => 200}).wait(100).move_to({:x => 10, :y => 200}).release.perform
but it doesn’t do anything
I am doing this in Ruby. I see no errors in the appium server logs. Any ideas? Does what I have look incorrect?
danqa
April 28, 2016, 8:18pm
4
Fix it:
Correct code to swipe left:
action = Appium::TouchAction.new
action.press({:x => 200, :y => 200}).wait(100).move_to({:x => -200, :y => 0}).release.perform
1 Like