Mobile Swipe does not complete in Android playback

Tried to perform two swipe left actions at the start of the app to go through tutorial pages using:

Mobile.swipe(950, 850, -900, 0)
Mobile.Delay(2)
Mobile.swipe(950, 850, -900, 0)

However, the swipe does not seem to complete which only display around 2/3 of the next view. This becomes a problem when the second swipe action is performed since it only completed the first swipe instead of swiping to the third view on the right.

Currently, I have to add a tap action to complete the swipe action.

Mobile.swipe(950, 850, -900, 0)Mobile.tap(content-holder)
Mobile.Delay(2)
Mobile.swipe(950, 850, -900, 0)Mobile.tap(content-holder)

Is there any way to make the swipe action faster as when I try this in appium java client I only need the following script to complete both swipes.

driver.swipe(startX, startY, endX, endY, 500);
Thread.sleep(2000);
driver.swipe(startX, startY, endX, endY, 500);

Hi there,

I have tried the above solution, but it doesn’t work for me…

On entering the -ve value it is showing Error as … **invalid data

please help…!**

Hi @Shweta_sao,

I’m not sure if you got your swiping issue resolved, but here is a post with several options that I hope will help troubleshoot it: Unable to Swipe

– Chris