# Swipe action is not performing on WMA Android app

**URL:** <https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000>\
**Category:** Issues/Bugs\
**Created:** [September 16, 2025, 8:41am UTC](https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000 "2025-09-16T08:41:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munishhh](https://discuss.appium.io/user_avatar/discuss.appium.io/munishhh/32/12745_2.png) [@Munishhh](https://discuss.appium.io/u/Munishhh)\
**Post date:** [September 16, 2025, 8:41am UTC](https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000/1 "2025-09-16T08:41:33Z")

</div>

Hi Team,

we are using leapwork mobile automation and through that we tried to perform the swipe right operation on the WMA app

 ![image](https://discuss.appium.io/uploads/default/original/2X/8/8b84de8587a901d2896e0a5d503cd4b63c9479de.png)

Steps to perform.

Open the app

click on demo mode

click on Purchase Receive, in this window we are performing swipe right .

Below is the code which we are using

var inputDevice = new PointerInputDevice(PointerKind.Touch, MobileConstants.SwipeTouch);  
var swipeActionSequence = new ActionSequence(inputDevice, 0);  
var swipeDuration = GetSwipeDuration();

var center = GetElementCenter();  
executor.Log.Debug($“Element center calculated at ({center.X}, {center.Y}).”);

var destination = GetTouchDestination(center);  
executor.Log.Debug($“Touch destination calculated at ({destination.X}, {destination.Y}).”);

//Creating swipe sequence  
swipeActionSequence.AddAction(inputDevice.CreatePointerMove(CoordinateOrigin.Viewport, center.X, center.Y, TimeSpan.Zero));  
swipeActionSequence.AddAction(inputDevice.CreatePointerDown(PointerButton.TouchContact));

swipeActionSequence.AddAction(inputDevice.CreatePause(TimeSpan.FromMilliseconds(MoveToDelayMilliseconds)));  
swipeActionSequence.AddAction(inputDevice.CreatePointerMove(CoordinateOrigin.Viewport, destination.X, destination.Y, swipeDuration));  
swipeActionSequence.AddAction(inputDevice.CreatePointerUp(PointerButton.TouchContact));

//Performing swipe action sequence  
executor.Driver.PerformActions(new List { swipeActionSequence });  
executor.Log.Debug(“Swipe actions performed successfully.”);

here for swipe, we tried to pass custom swipe value to 50, sometimes it works as expectd and sometimes it does not work.

Kindly assist me.

FYI @mykola-mokhnach@Aleksei@wreed

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [September 16, 2025, 1:38pm UTC](https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000/2 "2025-09-16T13:38:53Z")

</div>

try:

1 make sure animation stopped before swipe. e.g. disable animation on device or in driver capabilities or add delay after previours swipe happens.

2 enable see touches and coordinates on Android device and check when and how actually swipe happens.

3 when swipe fails → try manually with same touches. I often saw that some app areas are not sensibly and swipe just not starting.

---

<div class="post-metadata">

**Author:** ![Munishhh](https://discuss.appium.io/user_avatar/discuss.appium.io/munishhh/32/12745_2.png) [@Munishhh](https://discuss.appium.io/u/Munishhh)\
**Post date:** [September 16, 2025, 1:44pm UTC](https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000/3 "2025-09-16T13:44:43Z")

</div>

Hi, thank you for the reply. The problem is that out of 10 times, it swipes perfectly fine for 3-4 times. but not able to get to know why it fails rest of the time. I tried to compare the coordinates too, that are also same but still fails

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [September 16, 2025, 8:09pm UTC](https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000/4 "2025-09-16T20:09:10Z")

</div>

Try to apply a mobile gesture as a possible alternative: [appium-uiautomator2-driver/docs/android-mobile-gestures.md at master · appium/appium-uiautomator2-driver · GitHub](https://github.com/appium/appium-uiautomator2-driver/blob/master/docs/android-mobile-gestures.md)

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [September 16, 2025, 9:06pm UTC](https://discuss.appium.io/t/swipe-action-is-not-performing-on-wma-android-app/46000/5 "2025-09-16T21:06:19Z")

</div>

also can try pure UIAutomator2 commands → [https://developer.android.com/reference/androidx/test/uiautomator/UiScrollable](https://developer.android.com/reference/androidx/test/uiautomator/UiScrollable)
