# Swipe doesn't work after update Katalon 9.1 and Appium 2.x.x

**URL:** <https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639>\
**Category:** Bug Report\
**Tags:** mobile-testing\
**Created:** [December 20, 2023, 4:46pm UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639 "2023-12-20T16:46:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![QADiamond](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/qadiamond/32/23870_2.png) [@QADiamond](https://forum.katalon.com/u/QADiamond)\
**Post date:** [December 20, 2023, 4:46pm UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/1 "2023-12-20T16:46:00Z")

</div>

Hai everyone,  
I have step:

```auto
Mobile.swipe(667, 773, 65, 773, FailureHandling.OPTIONAL)

```

in Katalon 9.0 with Appium 1.22.3 can be work properly.  
But after updating to  
Katalon 9.1  
Appium 2.3.0  
 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/6/4/64bc8a2d8e2b14f38e19528492730e2443edb7b9.png)

The step can be passed, but my application doesn’t move.  
Kindly need your advice, thank you.

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [December 21, 2023, 4:17am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/2 "2023-12-21T04:17:52Z")

</div>

Hi,

Do you receive any error log? What do you mean by “doesnt move”? Thank you

---

<div class="post-metadata">

**Author:** ![martinzuzic](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/martinzuzic/32/23870_2.png) [@martinzuzic](https://forum.katalon.com/u/martinzuzic)\
**Post date:** [December 22, 2023, 3:19pm UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/3 "2023-12-22T15:19:34Z")

</div>

I have same problem. After updating to Katalon 9.1 and Appium 2.3.0, Swipe is passed in test case, but physically it doesn’t work in tested application (a scroll panel, which should be moved by Swipe, wasn’t move.

 ![Scroll1](https://europe1.discourse-cdn.com/katalon/original/3X/3/4/34b685d49847405b5c4b5210cf501ef21fcf24a4.jpeg)  
 ![Scroll2](https://europe1.discourse-cdn.com/katalon/original/3X/e/e/eeb117e047b4e73de78084731a0b657ec6ee0bc9.jpeg)

---

<div class="post-metadata">

**Author:** ![fajar.saputra](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fajar.saputra/32/20464_2.png) [@fajar.saputra](https://forum.katalon.com/u/fajar.saputra)\
**Post date:** [January 12, 2024, 7:00am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/4 "2024-01-12T07:00:15Z")

</div>

i have same problem, any update on this katalon team?

---

<div class="post-metadata">

**Author:** ![phong.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/phong.nguyen/32/26121_2.png) [@phong.nguyen](https://forum.katalon.com/u/phong.nguyen)\
**Post date:** [January 12, 2024, 7:35am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/5 "2024-01-12T07:35:51Z")

</div>

Could you please give the apk file?So I could take a look on that?

---

<div class="post-metadata">

**Author:** ![gerald1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerald1/32/23869_2.png) [@gerald1](https://forum.katalon.com/u/gerald1)\
**Post date:** [January 15, 2024, 10:21am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/6 "2024-01-15T10:21:09Z")

</div>

same issue here. Mobile.swipe is not throwing any errors but not working on Android device

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [January 15, 2024, 10:23am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/7 "2024-01-15T10:23:49Z")

</div>

Hi there @here,

For those of you who are having this issue, could you follow @phong.nguyen’s suggestion and upload your APK file here so that he could have a look at them?

Thanks,  
Albert

---

<div class="post-metadata">

**Author:** ![gerald1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerald1/32/23869_2.png) [@gerald1](https://forum.katalon.com/u/gerald1)\
**Post date:** [January 16, 2024, 6:54am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/8 "2024-01-16T06:54:17Z")

</div>

i found a workaround for this while Mobile.swipe is still not working.

@Keyword  
def scrollDownUntilObjectIsVisible3(MobileTestObject pObject) {  
int deviceHeight = Mobile.getDeviceHeight()  
int deviceWidth = Mobile.getDeviceWidth()

```
	Mobile.comment('[INFO] Device height: ' + deviceHeight + " and width: " + deviceWidth )

	int swipeTop = deviceHeight * 0.3
	int swipeHeight = deviceHeight * 0.3
	int swipeLeft = deviceWidth * 0.5
	AppiumDriver<?> driver = MobileDriverFactory.getDriver()
	
	while (	Mobile.waitForElementPresent(pObject, 2, FailureHandling.STOP_ON_FAILURE) == false){
		//Java
		((JavascriptExecutor) driver).executeScript("mobile: swipeGesture", ImmutableMap.of(
				"left", swipeLeft, "top", swipeTop, "width", 0, "height", swipeHeight,
				"direction", "up",
				"percent", 0.75
				));
	}
}

```

---

<div class="post-metadata">

**Author:** ![gerald1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerald1/32/23869_2.png) [@gerald1](https://forum.katalon.com/u/gerald1)\
**Post date:** [January 16, 2024, 6:55am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/9 "2024-01-16T06:55:23Z")

</div>

[m88-stg.apk](https://forum.katalon.com/uploads/short-url/qvxxt3WQ5uXEykUl01GRdoDn4ov.apk) (17.8 MB)  
here is the APK it can only be accessed in our internal office network.

I am currently using -  
Katalon 9.1.0  
Appium 2.3.0  
Java 21.0.1  
Macbook Pro - MacOS Ventura 13.5 (Apple M2 Chip)

 ![swipe not working](https://europe1.discourse-cdn.com/katalon/original/3X/f/1/f125e54fb0195be050e9faf14adccc50bbd27b95.jpeg)  
the Mobile.swipe keyword is not working. It passes during execution but it is not actually swiping on the real android device

[TEST RESULT.html](https://forum.katalon.com/uploads/short-url/3gREocGFsurqVLi1ArDR4K6IbAZ.html) (21.4 MB)  
[appium.log](https://forum.katalon.com/uploads/short-url/pLSNdirs7dIpH9qcnEUSDMBR57x.log) (275.2 KB)  
[execution0.log](https://forum.katalon.com/uploads/short-url/bgCvhTTNanGQODS2xiyh3cv7pfA.log) (182.1 KB)

attached are the test results and logs.

---

<div class="post-metadata">

**Author:** ![phong.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/phong.nguyen/32/26121_2.png) [@phong.nguyen](https://forum.katalon.com/u/phong.nguyen)\
**Post date:** [January 17, 2024, 8:21am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/10 "2024-01-17T08:21:33Z")

</div>

Thanks for your information. Could you please check the uiautomator2 driver version?We checked on uiautomator version v2.35.0 and it works fine. If could, please update yours to that version and re-try.  
Steps:

1. Go to your appium folder, open terminal
2. Type in terminal : appium driver update uiautomator2@2.35.0 (you should backup the driver just in case)

Notice: I tried with uiautomator2 with latest version 2.42.1, it seems there is an issue with swipe action, we are working on it.  
3.

---

<div class="post-metadata">

**Author:** ![phong.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/phong.nguyen/32/26121_2.png) [@phong.nguyen](https://forum.katalon.com/u/phong.nguyen)\
**Post date:** [January 17, 2024, 11:24am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/11 "2024-01-17T11:24:06Z")

</div>

Oh, I found that swipe is not real swipe because the distance between start position and end position is too small, Ex: Swipe(400, 800, 400,400) is not swipe, but when I try to increase the distance by Swipe(400,1200,400,100), it works like a charm.

---

<div class="post-metadata">

**Author:** ![gerald1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerald1/32/23869_2.png) [@gerald1](https://forum.katalon.com/u/gerald1)\
**Post date:** [January 19, 2024, 7:49am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/12 "2024-01-19T07:49:41Z")

</div>

i was using the following

- uiautomator2@2.37.0 [installed (npm)]

i tried downgrading to 2.35.0

- appium uninstall uiautomator2
- appium install uiautomatior2@2.35.0

> still same result. swipe is still not working. seems unrelated to the uiautomator2 version

---

<div class="post-metadata">

**Author:** ![phong.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/phong.nguyen/32/26121_2.png) [@phong.nguyen](https://forum.katalon.com/u/phong.nguyen)\
**Post date:** [January 22, 2024, 4:47am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/13 "2024-01-22T04:47:35Z")

</div>

Could you try to increase the distance between Start Position and End Position?

> Oh, I found that swipe is not real swipe because the distance between start position and end position is too small, Ex: Swipe(400, 800, 400,400) is not swipe, but when I try to increase the distance by Swipe(400,1200,400,100), it works like a charm.

---

<div class="post-metadata">

**Author:** ![cshtoyou](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/cshtoyou/32/20464_2.png) [@cshtoyou](https://forum.katalon.com/u/cshtoyou)\
**Post date:** [January 22, 2024, 7:10am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/14 "2024-01-22T07:10:14Z")

</div>

I also have the same symptoms. Both Android and IOS are in the same state

---

<div class="post-metadata">

**Author:** ![gerald1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerald1/32/23869_2.png) [@gerald1](https://forum.katalon.com/u/gerald1)\
**Post date:** [February 29, 2024, 11:45am UTC](https://forum.katalon.com/t/swipe-doesnt-work-after-update-katalon-9-1-and-appium-2-x-x/111639/15 "2024-02-29T11:45:32Z")

</div>

This issue still exists even after updating the Katalon Version to 9.3.0.

I am trying to swipe left on my Android device

`Mobile.swipe(1000,800,150,800)`

The swipe keyword did not do anything but showed as passed in the results.  
I am currently calling the swipeGesture Appium command as a temporary workaround.

Is there an open bug for this?
